zsh-users
 help / color / mirror / code / Atom feed
From: Chris Laas <chrisl@cybercom.net>
To: zsh-users@math.gatech.edu
Subject: sh/bash incompatibility - noticeable with Netscape
Date: Tue, 1 Apr 1997 19:56:25 -0500 (EST)	[thread overview]
Message-ID: <199704011456.TAA25867@lator.cybercom.net> (raw)

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
open-parens.

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)?

--Chris

-- 
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@cybercom.net
Limit[tech->Inf](words/acronyms)==0 / http://www.cybercom.net/~chrisl/


             reply	other threads:[~1997-04-02  1:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-04-02  0:56 Chris Laas [this message]
1997-04-02  1:12 ` Clint Adams
1997-04-02 16:25   ` Chet Ramey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199704011456.TAA25867@lator.cybercom.net \
    --to=chrisl@cybercom.net \
    --cc=zsh-users@math.gatech.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).