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

Re: zsh 3.0/3.1 bug, zsh 3.1.4 regression



On Aug 18, 11:42pm, SL Baur wrote:
} Subject: Re: zsh 3.0/3.1 bug, zsh 3.1.4 regression
}
} Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> writes:
} 
} > $^! is $! with the RC_EXPAND_PARAM option turned on.  Try this:
} 
} Why should this option be turned on when zsh is executed as /bin/sh?

Er, no, you misunderstand.  Placing a ^ after the $ *means* "turn on
the option for this one expansion only."  The option *is* off, under
all other circumstances, when emulating sh or ksh.

Zsh does not alter its parameter expansion (variable) syntax, except
for using 0-based vs. 1-based arrays, even when emulating.

} > It might be possible for zsh to special-case use of the ^ modifier,
} 
} Why should it be using a csh abomination when it is invoked as /bin/sh?

This is not "a csh abomination."  Csh does nothing of the kind.  It's
been standard zsh syntax for quite a long while now, and only zsh has it
that I know of.

} > but really the cvs test should be using a quoted here-document, like
} > so:
} 
} Agreed.

Then let's not bother info-cvs with any more of this thread.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com



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