zsh-workers
 help / color / mirror / code / Atom feed
From: Zoltan Hidvegi <hzoli@cs.elte.hu>
To: zsh-workers@math.gatech.edu (Zsh workers list)
Subject: Re: more dependencies on emulation
Date: Fri, 19 Jul 1996 03:34:02 +0200 (MET DST)	[thread overview]
Message-ID: <199607190134.DAA05511@bolyai.cs.elte.hu> (raw)
In-Reply-To: <9607181518.ZM14255@candle.brasslantern.com> from Bart Schaefer at "Jul 18, 96 03:18:39 pm"

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



  reply	other threads:[~1996-07-19  1:39 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-18 14:23 Zefram
1996-07-18 22:18 ` Bart Schaefer
1996-07-19  1:34   ` Zoltan Hidvegi [this message]
1996-07-19  2:59     ` Bart Schaefer
1996-07-19 14:21       ` Zefram
1996-07-19 14:17     ` Zefram
1996-07-19 14:07   ` Zefram
1996-07-19  0:12 ` Zoltan Hidvegi
1996-07-19  2:44   ` Bart Schaefer
1996-07-19 14:26     ` Zefram
1996-07-19 18:14       ` Bart Schaefer

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=199607190134.DAA05511@bolyai.cs.elte.hu \
    --to=hzoli@cs.elte.hu \
    --cc=zsh-workers@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).