[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Savannah-cvs] [699] formatting fixes
From: |
iank |
Subject: |
[Savannah-cvs] [699] formatting fixes |
Date: |
Tue, 12 Dec 2023 14:58:05 -0500 (EST) |
Revision: 699
http://svn.savannah.gnu.org/viewvc/?view=rev&root=administration&revision=699
Author: iank
Date: 2023-12-12 14:58:04 -0500 (Tue, 12 Dec 2023)
Log Message:
-----------
formatting fixes
Modified Paths:
--------------
trunk/sviki/fsf/bash-style-guide.mdwn
Modified: trunk/sviki/fsf/bash-style-guide.mdwn
===================================================================
--- trunk/sviki/fsf/bash-style-guide.mdwn 2023-12-12 19:56:20 UTC (rev
698)
+++ trunk/sviki/fsf/bash-style-guide.mdwn 2023-12-12 19:58:04 UTC (rev
699)
@@ -365,7 +365,7 @@
`${PIPESTATUS[@]}`.
-Misc:
+# Misc
Prefer the use of builtins such as the Parameter Expansion functions in
bash(1) as they are more robust.
@@ -411,6 +411,7 @@
# Quote only the righthand side when globbing is not desired.
[[ $filename == "*.png" ]] # filename is literal string "*.png"
```
+
Use double equal for string equality [[ $x == 2 ]]
@@ -418,6 +419,7 @@
Use gnu getopts whenever there is more than one option, or an option and
an argument. Reference info at:
/usr/share/doc/util-linux/examples/getopt-parse.bash
+
```
usage() {
cat <<EOF
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Savannah-cvs] [699] formatting fixes,
iank <=