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

Re: sh/bash incompatibility - noticeable with Netscape



> 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