/bin/sh does not support local variables.
Brought to you by:
ianbeckwith,
proff
In the file surfraw.in you use BASH specific features, local
varibles that are NOT POSIX:
http://www.opengroup.org/onlinepubs/7908799/xcu/sh.html
however it works if SH is BASH, like on most Linux-systems.
(cause the /bin/sh emulation of bash is broken)
Bash was not used. Ash (/bin/sh on NetBSD,FreeBSD,OpenBSD) supports "local". Which /bin/sh does not support local?
Digital UNIX 4.0d /bin/sh does not support it, but that is NOT an issue here, local varibles are not POSIX-sh so dont
use it, all commercial UNIXes use 'real' /bin/sh, so i think
this will be a problem on commercial UNIX-plattforms like AIX/SCO/HPUX and more.