savannah-cvs
[Top][All Lists]
Advanced

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

[Savannah-cvs] [712] style guide formatting


From: iank
Subject: [Savannah-cvs] [712] style guide formatting
Date: Tue, 12 Dec 2023 21:07:22 -0500 (EST)

Revision: 712
          
http://svn.savannah.gnu.org/viewvc/?view=rev&root=administration&revision=712
Author:   iank
Date:     2023-12-12 21:07:21 -0500 (Tue, 12 Dec 2023)
Log Message:
-----------
style guide formatting

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:05:50 UTC (rev 
711)
+++ trunk/sviki/fsf/bash-style-guide.mdwn       2023-12-13 02:07:21 UTC (rev 
712)
@@ -202,7 +202,7 @@
 
 # A constant set based on condition needs to be set readonly after it's set.
 verbose=false
-if [[ $1 ]]; then
+if \[[ $1 ]]; then
   verbose=true
 fi
 readonly verbose
@@ -265,7 +265,7 @@
 To allow a specific command to to fail, make it part of a conditional. eg:
 
 ```
-iptables -D rule || [[ $? == 1 ]] # allow exit code 1 when rule doesn't exist
+iptables -D rule || \[[ $? == 1 ]] # allow exit code 1 when rule doesn't exist
 ```
 
 ### Gotchas in automatic error handling:




reply via email to

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