Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: sh/bash incompatibility - noticeable with Netscape
- X-seq: zsh-users 776
- From: Clint Adams <schizo@xxxxxxxxxxxxxxx>
- To: chrisl@xxxxxxxxxxxx
- Subject: Re: sh/bash incompatibility - noticeable with Netscape
- Date: Tue, 01 Apr 1997 20:12:54 -0500
- Cc: zsh-users@xxxxxxxxxxxxxxx
- In-reply-to: Your message of "Tue, 01 Apr 1997 19:56:25 EST." <199704011456.TAA25867@xxxxxxxxxxxxxxxxxx>
> 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.
This only works with bash 1.x. bash 2.0 will properly choke in the same way
as zsh.
Better to fix the bug in Netscape (and harass them about fixing it)
This is a slightly modified excerpt of the Debian netscape installer script
(for perl)
undef $/;
open(NETSCAPE,"</tmp/netscape.orig") || die "ERROR: Could not read netscape exec
utable -- $!\n";
$netscape = <NETSCAPE>;
close(NETSCAPE);
$netscape =~ s/\(\(\0cat %s \| \0\);/\( \0cat %s \| \0 ;/;
$outfile='/tmp/netscape.patched';
open(NETSCAPE,">$outfile") || die "ERROR: Could not write '$outfile' -- $!\n";
print NETSCAPE $netscape;
close(NETSCAPE);
chmod 0755,$outfile;
Messages sorted by:
Reverse Date,
Date,
Thread,
Author