Menu

#3 /bin/sh does not support local variables.

open
nobody
None
5
2000-08-14
2000-08-14
Anonymous
No

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)

Discussion

  • Nobody/Anonymous

    Bash was not used. Ash (/bin/sh on NetBSD,FreeBSD,OpenBSD) supports "local". Which /bin/sh does not support local?

     
  • Nobody/Anonymous

    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.

     

Log in to post a comment.

MongoDB Logo MongoDB