[Git-commits] [grml/grml-network] 6fe530: netcardconfig: don't fail with bash >=4.4 when sca...
Michael Prokop
mika at grml.org
Sat Mar 25 16:32:36 CET 2017
Branch: refs/heads/master
Home: https://github.com/grml/grml-network
Commit: 6fe530c5d13de98db0efc9515422824c81c412b1
https://github.com/grml/grml-network/commit/6fe530c5d13de98db0efc9515422824c81c412b1
Author: Michael Prokop <mika at grml.org>
Date: 2017-03-25 (Sat, 25 Mar 2017)
Changed paths:
M sbin/netcardconfig
Log Message:
-----------
netcardconfig: don't fail with bash >=4.4 when scanning for networks
There was a behavior change in bash 4.4:
| % bash --version | head -1
| GNU bash, version 4.3.30(1)-release (x86_64-pc-linux-gnu)
| % cat foo
| printf "1\n2\n3\n" > /tmp/input
| i=0
| while read line
| do
| WARRAY[i++]=$line
| done < /tmp/input
| echo ${WARRAY[@] }
| % bash ./foo
| 1 2 3
| %
|
| % bash --version | head -1
| GNU bash, version 4.4.5(1)-release (x86_64-pc-linux-gnu)
| % bash ./foo
| ./foo: line 7: ${WARRAY[@] }: bad substitution
| %
While at it don't hide empty and hidden ESSIDs, this is breaking
the dialog option parsing, so while it's not really nice from
a user perspective it's still better than a failing netcardconfig.
Closes grml/release-planning#13 @ GH
More information about the Git-commits
mailing list