[tor-bugs] #33604 [Core Tor/Chutney]: Catch common bash runtime errors in chutney scripts
    Tor Bug Tracker & Wiki 
    blackhole at torproject.org
       
    Thu Mar 12 23:56:11 UTC 2020
    
    
  
#33604: Catch common bash runtime errors in chutney scripts
----------------------------------+--------------------
     Reporter:  teor              |      Owner:  (none)
         Type:  enhancement       |     Status:  new
     Priority:  Medium            |  Milestone:
    Component:  Core Tor/Chutney  |    Version:
     Severity:  Normal            |   Keywords:
Actual Points:                    |  Parent ID:
       Points:  1                 |   Reviewer:
      Sponsor:                    |
----------------------------------+--------------------
 Let's gradually convert our scripts to use:
 {{{
 set -e
 set -u
 set -o pipefail
 }}}
 And maybe:
 {{{
 IFS=$'\n\t'
 }}}
 These settings help catch common errors in bash scripts at runtime:
 http://redsymbol.net/articles/unofficial-bash-strict-mode/
 (Shellcheck helps us catch errors while writing scripts, but it can't help
 with runtime failures.)
 Follow-up to #33451.
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/33604>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
    
    
More information about the tor-bugs
mailing list