[tor-bugs] #22302 [Core Tor/Chutney]: test-network.sh uses a deprecated arithmetic syntax
Tor Bug Tracker & Wiki
blackhole at torproject.org
Fri May 19 18:59:59 UTC 2017
#22302: test-network.sh uses a deprecated arithmetic syntax
----------------------------------+------------------------------
Reporter: catalyst | Owner: catalyst
Type: defect | Status: new
Priority: Medium | Milestone: Tor: unspecified
Component: Core Tor/Chutney | Version:
Severity: Normal | Keywords:
Actual Points: | Parent ID:
Points: | Reviewer:
Sponsor: |
----------------------------------+------------------------------
`test-network.sh` uses a deprecated bash-specific syntax to do arithmetic.
This fails on systems like Ubuntu and Debian that use dash instead of bash
for `/bin/sh`. `test-network.sh` should probably use the POSIX
`$((arithmetic_expr))` syntax instead.
Typical error from the log files:
{{{
/home/tlyu/src/tor/../chutney/tools/test-network.sh: 302: [: Illegal
number: $[n_rounds+1]
Completed $[n_rounds+1] of 1 verify rounds.
}}}
--
Ticket URL: <https://trac.torproject.org/projects/tor/ticket/22302>
Tor Bug Tracker & Wiki <https://trac.torproject.org/>
The Tor Project: anonymity online
More information about the tor-bugs
mailing list