zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@ifh.de>
To: zsh-workers@math.gatech.edu (Zsh hackers list)
Subject: bug, limitation, ...?
Date: Fri, 26 Jul 1996 10:44:05 +0200	[thread overview]
Message-ID: <199607260844.KAA19446@hydra.ifh.de> (raw)

Somebody was complaining to me on the S-Bahn yesterday evening that he
couldn't do:

% set foo
% print ${1[0]}
zsh: closing brace expected

(I think this question has cropped up before, in fact, but that was
long before Zoltan's parameter substitution improvements.)  It would
be nice if numerical parameters were as much like `other' scalar
parameters as possible.  (OK, they're really array elements, but the
mode of addressing suggests that should be hidden from the user; after
all, direct assignment works.)  Still, the world is not a nice place.
If it turns out a change would be tantamount to allowing ${argv[0][0]}
it's probably too much, at least for now.

P.S. no need to post workarounds.

-- 
Peter Stephenson <pws@ifh.de>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77330
Deutches Electronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, 15735 Zeuthen, Germany.



             reply	other threads:[~1996-07-26  8:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-26  8:44 Peter Stephenson [this message]
1996-07-26 12:00 ` Zoltan Hidvegi

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=199607260844.KAA19446@hydra.ifh.de \
    --to=pws@ifh.de \
    --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).