[tor-bugs] #29060 [Core Tor/Tor]: shellcheck: test-network.sh issues

Tor Bug Tracker & Wiki blackhole at torproject.org
Sun Mar 10 16:21:18 UTC 2019


#29060: shellcheck: test-network.sh issues
-------------------------------------------------+-------------------------
 Reporter:  rl1987                               |          Owner:  rl1987
     Type:  defect                               |         Status:
                                                 |  needs_revision
 Priority:  Medium                               |      Milestone:  Tor:
                                                 |  0.4.1.x-final
Component:  Core Tor/Tor                         |        Version:
 Severity:  Normal                               |     Resolution:
 Keywords:  technical-debt, regression,          |  Actual Points:
  041-must                                       |
Parent ID:                                       |         Points:
 Reviewer:  ahf                                  |        Sponsor:
-------------------------------------------------+-------------------------

Comment (by rl1987):

 Pull request to revert bad commit:
 https://github.com/torproject/tor/pull/779

 However we still don't want to require bash for this script.

 We could use POSIX `getopts` [0] here, but that would require us to
 downgrade `--chutney-path`, `--tor-path` and `--quiet` to single-character
 option names. There's also getopt(1), but that seems to be different
 between Linux and BSD-derived systems. What do you think? Any other ideas?

 [0]
 http://pubs.opengroup.org/onlinepubs/9699919799.2018edition/utilities/getopts.html

--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/29060#comment:16>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online


More information about the tor-bugs mailing list