Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: more dependencies on emulation
- X-seq: zsh-workers 1706
- From: Zoltan Hidvegi <hzoli@xxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx (Zsh workers list)
- Subject: Re: more dependencies on emulation
- Date: Fri, 19 Jul 1996 03:34:02 +0200 (MET DST)
- In-reply-to: <9607181518.ZM14255@xxxxxxxxxxxxxxxxxxxxxxx> from Bart Schaefer at "Jul 18, 96 03:18:39 pm"
- Organization: Dept. of Comp. Sci., Eotvos University, Budapest, Hungary
- Phone: (36 1)2669833 ext: 2667, home phone: (36 1) 2752368
Bart Schaefer wrote:
> If zsh were really emulating sh, arrays wouldn't work at all. So it's a
> bit dubious to force ksh syntax only, given that it affects the indices
> as well as the syntax.
In sh ${foo[1]} is a syntax error so it does not introdueces any
incompatibility.
> I don't have a ksh to try this, but ~{pfalstad,rc} works fine in Bash
% ksh
$ echo ${.sh.version}
Version 12/28/93d
$ echo ~{hzoli,root}
~hzoli ~root
pdksh behaves similarily.
> (that is, the ~ is expanded), even though ~$USER doesn't expand tilde.
> In zsh's ksh emulation mode with this patch applied, ~$USER works, but
Do you mean that it gives the home directory of $USER? It did not do that
before the patch.
> ~{pfalstad,rc} fails unless IGNORE_BRACES is also unset. There doesn't
IGNORE_BRACES should probably be not set if zsh is invoked as ksh. I'll
change that.
There is no standard for brace expansion and probably that's why shells are
differerent here.
Zoltan
Messages sorted by:
Reverse Date,
Date,
Thread,
Author