Merge pull request 2899 from krytarowski/netbsd-support-1
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Sun, 17 Apr 2016 17:24:59 +0000 (19:24 +0200)
committerAlexander Köplinger <alex.koeplinger@outlook.com>
Sun, 17 Apr 2016 17:24:59 +0000 (19:24 +0200)
commit4288ef6e247a45840f23a1d4599adbf71d630f3e
tree351d7e1a8a51e30592841b0550e9be317bf9c1b3
parent453c2d54899691f4a629db1543402c9ad53e92a9
parentd0f0b15bd0801077ab9be31a48dfeb1ebce9c5dc
Merge pull request 2899 from krytarowski/netbsd-support-1

Improve shell portability on NetBSD

The "test" command, as well as the "[" command, are not required to know
the "==" operator.

Comparing with empty strings ("") might lead to unspecified results.

Replace unportable shell loops:
    for I in {2..6}; do ..; done
with POSIX ones:
    I=2; while [ $I -le 6 ]; do ..; I=$((I + 1)); done