savannah-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Savannah-cvs] [714] style guide: remove unneeded quotes


From: iank
Subject: [Savannah-cvs] [714] style guide: remove unneeded quotes
Date: Wed, 13 Dec 2023 08:12:54 -0500 (EST)

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

[Prev in Thread] Current Thread [Next in Thread]