sh: increase likelihood of failure on syntax error.
commitb7217d07cf3e9a56888cbb10a516a2f23f3d2ca3
authorAvery Pennarun <apenwarr@gmail.com>
Mon, 4 Sep 2017 23:07:56 +0000 (4 19:07 -0400)
committerAvery Pennarun <apenwarr@gmail.com>
Mon, 4 Sep 2017 23:10:51 +0000 (4 19:10 -0400)
tree95cb1e00f0e87aa395d52b444eaac49c301db0b6
parent432b31a4250a9ee3c34fe08d6c1394fc4e8bb521
sh: increase likelihood of failure on syntax error.

_wvcheck would accidentally assume success if [] had a syntax error parsing
its input.  Now we invert the check for -eq 0 instead of directly using the
output of -ne 0.

This had covered up a problem on MacOS where /bin/sh doesn't understand
"echo -n".  (It actually prints "-n")  To avoid the problem, switch to using
printf, which is more POSIXy.
sh/wvtest.sh