Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Enable further expansion of parameter name by ${!...}
- X-seq: zsh-workers 34386
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- Subject: Re: [PATCH] Enable further expansion of parameter name by ${!...}
- Date: Sun, 25 Jan 2015 19:23:51 +0100
- Cc: Tomoki Sekiyama <tomoki.sekiyama@xxxxxxxxx>, zsh workers <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=PAhmdeAjrF7j9E83Y9lJzD5U8DBPCNnfZ9ccEX0AB9Y=; b=vjMBL4+qiOm1xwvfR8vOoLoT8PVSpSMNHnu75tWwqDgSVvFndONVRLsYAE2oVOnPoy T9utnYEMTfjrpb8e+tCDxmTjK21wmzs2KP302TPLVQZapYemJci+3FrAZfTEMUSqZu64 61hVwUXiIO7lb08ZKkRo1wB02+u4jJg51VboMF/euMQOOGmlMlKPAEZg1TsLrBUF+hwh jrvjgtK7iqHTIOHQFMS5+80qY1xXPgymNI1RQ5hYNzFlSP/xGd5e4OyfWrAj9smYictP vh71Om8VUB5OVZ0RgXWdM1cQSlgM1pPeRR+kG0vU4yjKerF1OkQG8P7PczyV5MGQDhF8 4oCQ==
- In-reply-to: <20150125181433.4ef7fcc8@ntlworld.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1422177338-85472-1-git-send-email-tomoki.sekiyama@gmail.com> <20150125181433.4ef7fcc8@ntlworld.com>
On Sun, Jan 25, 2015 at 7:14 PM, Peter Stephenson
<p.w.stephenson@xxxxxxxxxxxx> wrote:
> On Sun, 25 Jan 2015 04:15:38 -0500
> Tomoki Sekiyama <tomoki.sekiyama@xxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author