Revision: 714
          
http://svn.savannah.gnu.org/viewvc/?view=rev&root=administration&revision=714
Author:   iank
Date:     2023-12-13 08:12:53 -0500 (Wed, 13 Dec 2023)
Log Message:
-----------
style guide: remove unneeded quotes

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-13 02:13:11 UTC (rev 
713)
+++ trunk/sviki/fsf/bash-style-guide.mdwn       2023-12-13 13:12:53 UTC (rev 
714)
@@ -440,12 +440,12 @@
 and avoids edge cases.
 
 ```
-\[[ "$filename" == *.png ]] # right-hand globs over left-hand - matches 
filename with .png extension
+\[[ $filename == *.png ]] # right-hand globs over left-hand - matches filename 
with .png extension
 # Quote only the right-hand side when globbing is not desired.
-\[[ "$filename" == "*.png" ]] # matches filename with literal asterisk "*.png"
+\[[ $filename == "*.png" ]] # matches filename with literal asterisk "*.png"
 ```
 
-Use double-equal for string equality, eg: `\[[ "$x" == 2 ]]`.
+Use double-equal for string equality, eg: `\[[ $x == 2 ]]`.
 
 Use GNU getopts whenever there is more than one option, or an option and
 an argument. Reference info at:


Reply via email to