[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-bugs] #22302 [Core Tor/Chutney]: test-network.sh uses a deprecated arithmetic syntax
#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
_______________________________________________
tor-bugs mailing list
tor-bugs@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-bugs