From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7467 invoked by alias); 13 Nov 2015 08:17:48 -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: 37101 Received: (qmail 6056 invoked from network); 13 Nov 2015 08:17:47 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Biglobe-Sender: Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) Subject: Re: PATCH: nested ${(P)} (formerly SHWORDSPLIT and leading spaces) From: "Jun T." In-Reply-To: <20151112141927.294984d9@pwslap01u.europe.root.pri> Date: Fri, 13 Nov 2015 17:17:10 +0900 Content-Transfer-Encoding: quoted-printable Message-Id: <679662D3-D2FE-4B5B-B0A7-9937B16BEB72@kba.biglobe.ne.jp> References: <87a8qr75za.fsf@gmail.com> <20151106170007.5196bd5e@pwslap01u.europe.root.pri> <20151107174255.74054b28@ntlworld.com> <151107114314.ZM24285@torch.brasslantern.com> <20151108181833.574cf0d6@ntlworld.com> <20151111174911.4384bf73@pwslap01u.europe.root.pri> <20151111215541.4a1fb149@ntlworld.com> <20151112094628.7345465b@pwslap01u.europe.root.pri> <20151112141927.294984d9@pwslap01u.europe.root.pri> To: "zsh-workers@zsh.org" X-Mailer: Apple Mail (2.1510) X-Biglobe-Spnum: 52152 Since the commit 830d54e629e8e12eb5a219a65a013876662e7b3e I can't complete git subcommand: % git _git_commands:186: bad substitution It is failing at _git:5246 ${${(Pr.COLUMNS-4.)cmdtype/(#s)(#m)[^:]##:/${(r.len.)MATCH[1,-2]} $sep = }%% #} A simpler example which fails is: % array=3D() % name=3Darray % echo ${${(Pr.6.)name}} zsh: bad substitution but ${${(Pr.5.)name}} works. It seems 5 is $#name.=