Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

sh/bash incompatibility - noticeable with Netscape

Since I started using zsh, I've been getting errors with running helper
apps under Netscape, and I finally investigated the cause.  I have
/bin/sh symbolically linked to zsh (instead of the default bash on
Slackware Linux) and it consistently fails with a parse error whenever
a helper app is run from Netscape.  By linking /bin/sh to /bin/echo, I
discovered that Netscape runs a line of the form:

/bin/sh -c "((helper-app); rm /var/tmp/MO0123456789.foo)&"

where helper-app is the text in the Helpers tab of the General Options
dialog, and the temp file is the downloaded file.

This line runs fine with bash, but zsh parses the leading (( as an
arithmetic expression opening, and fails.  There is no way I can figure
out to convince Netscape to put a space between the two leading

So, what it boils down to is, could we have a fix to the parsing code
to recognize this condition (possibly only when zsh is in
sh-compatibility mode)?


Such has been the patient sufferance of these colonies; and such is
now the necessity which constrains them to alter their former systems
of government.
    -- Thomas Jefferson, Prologue, "Declaration of Independence"
Chris Laas:  Unix, C++, Perl, Tcl/Tk / mailto:chrisl@xxxxxxxxxxxx
Limit[tech->Inf](words/acronyms)==0 / http://www.cybercom.net/~chrisl/

Messages sorted by: Reverse Date, Date, Thread, Author