From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4391 invoked by alias); 25 Jan 2015 18:24:07 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 34386 Received: (qmail 25885 invoked from network); 25 Jan 2015 18:23:55 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 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== MIME-Version: 1.0 X-Received: by 10.107.130.4 with SMTP id e4mr13229859iod.49.1422210231550; Sun, 25 Jan 2015 10:23:51 -0800 (PST) In-Reply-To: <20150125181433.4ef7fcc8@ntlworld.com> References: <1422177338-85472-1-git-send-email-tomoki.sekiyama@gmail.com> <20150125181433.4ef7fcc8@ntlworld.com> Date: Sun, 25 Jan 2015 19:23:51 +0100 Message-ID: Subject: Re: [PATCH] Enable further expansion of parameter name by ${!...} From: Mikael Magnusson To: Peter Stephenson Cc: Tomoki Sekiyama , zsh workers Content-Type: text/plain; charset=UTF-8 On Sun, Jan 25, 2015 at 7:14 PM, Peter Stephenson wrote: > On Sun, 25 Jan 2015 04:15:38 -0500 > Tomoki Sekiyama 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