zsh-workers
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: Peter Stephenson <p.w.stephenson@ntlworld.com>
Cc: Tomoki Sekiyama <tomoki.sekiyama@gmail.com>,
	zsh workers <zsh-workers@zsh.org>
Subject: Re: [PATCH] Enable further expansion of parameter name by ${!...}
Date: Sun, 25 Jan 2015 19:23:51 +0100	[thread overview]
Message-ID: <CAHYJk3Rvhb_ak2GfKXdVB6g5O8_7VLhWVmz-U2o-0wTB7qCRCw@mail.gmail.com> (raw)
In-Reply-To: <20150125181433.4ef7fcc8@ntlworld.com>

On Sun, Jan 25, 2015 at 7:14 PM, Peter Stephenson
<p.w.stephenson@ntlworld.com> wrote:
> On Sun, 25 Jan 2015 04:15:38 -0500
> Tomoki Sekiyama <tomoki.sekiyama@gmail.com> wrote:
>> With this change, ${!...} will enable further expansion of parameter name,
>> which is equivalent to (P) expansion flag. This will enable zsh to run some
>> scripts using variable references for bash.
>
> Thanks, this is a useeful idea, however it looks like a bit more work
> will be necessary to avoid this being confused with the parameter called
> "!", i.e. the last programme run in the background.  Both $! and ${!}
> have that meaning.

IIRC, in bash, you can also use ${!foo} even with banghist active. We
probably don't want to replicate that feature, but make sure ${\!foo}
works I suppose?

-- 
Mikael Magnusson


  reply	other threads:[~2015-01-25 18:24 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-25  9:15 Tomoki Sekiyama
2015-01-25 18:14 ` Peter Stephenson
2015-01-25 18:23   ` Mikael Magnusson [this message]
2015-01-25 20:24 ` Bart Schaefer
2015-01-25 20:38   ` ZyX
2015-01-25 21:39     ` Bart Schaefer
2015-01-26 20:00       ` Tomoki Sekiyama
2015-01-26 20:44         ` ZyX
2015-01-27  5:48         ` Bart Schaefer
2015-01-28  3:21           ` Tomoki Sekiyama
2015-01-28 18:41             ` Bart Schaefer
2016-11-11 16:58           ` 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=CAHYJk3Rvhb_ak2GfKXdVB6g5O8_7VLhWVmz-U2o-0wTB7qCRCw@mail.gmail.com \
    --to=mikachu@gmail.com \
    --cc=p.w.stephenson@ntlworld.com \
    --cc=tomoki.sekiyama@gmail.com \
    --cc=zsh-workers@zsh.org \
    /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).