From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23001 invoked by alias); 14 Nov 2015 01:33:30 -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: 37106 Received: (qmail 6043 invoked from network); 14 Nov 2015 01:33:30 -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,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern_com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=Y2HpgK1HlijbqJyOxpEM0MH9JrP/pkxLQnI6NNo12E8=; b=Rfra+aBz5PKWtphH2mOrIBuUIez06QxRIZI0MREP8D+qNzDqfSAJkM+yJVYaalCV2O Y7jqbwb+FfpM3AKFTK9g7z1XXjdbHqQlUgVJT5FxfbXeaC+Xn5IgmbHEEJKPYpN+skxg q2Orc+8srE5PmnPeeMzCc6diqF5R1LuadHpTTvYGZBxqrL2z4KRdi74MVDq3nOTMf9xH BwlvfxShBuPIlCT6IR/t7yu8kE+C4pyl/pxZ3QWfMRa3OPyeNTcDBIUtPHsn1ZFG/Bnf u0IHjdejkEMrQdC42xtCG3FKcixFVZvKew2gDXTi8nASuv1hkflGIHeQINPsmbGJtAsy jG3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:mime-version:content-type; bh=Y2HpgK1HlijbqJyOxpEM0MH9JrP/pkxLQnI6NNo12E8=; b=m4dfouE7FanQ6U0ird4rpD9ygipAFZYN9KiF8ksV7Pl8mmIf7cmSdW9DNZFU52sCAB VBVaSN+xBmL7FsjhMe/1133yAHiA0Lj6QNWaILf81qz4AETg40X65zI5HAWiqTZNYLdl 9P/EyOp2SCNEQbgVla/ng+1BTzET/0MvU3LlKEjEeA0jBZtOyy/P3yjiuYjDImVQRC6m 9cFrQ325HeiCjDIhP0cMEmuIaIyV7R6XbfTDiqT/WoWInK+dKBbFCcrEGonqDTG4DpTc H1tOwPwLU0z9eHEcX6mGJaSlf2dfAj0weJSPB15DQboxukl8wzMxtqV7tdO7On/bRfrm 8dyQ== X-Gm-Message-State: ALoCoQlnSqeUJSKHipK9CQ3A/MGv1LqKhKyg3zeSDEsUtH6gHHyMXVMSz4c+hRkVtZpHJ/HPuLx6 X-Received: by 10.60.43.66 with SMTP id u2mr15583550oel.44.1447464807696; Fri, 13 Nov 2015 17:33:27 -0800 (PST) From: Bart Schaefer Message-Id: <151113173324.ZM393@torch.brasslantern.com> Date: Fri, 13 Nov 2015 17:33:24 -0800 In-Reply-To: <56F69D19-9877-4728-B83D-2D045A8C8FC6@kba.biglobe.ne.jp> Comments: In reply to "Jun T." "Re: PATCH: nested ${(P)} (formerly SHWORDSPLIT and leading spaces)" (Nov 14, 12:07am) 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> <679662D3-D2FE-4B5B-B0A7-9937B16BEB72@kba.biglobe.ne.jp> <56F69D19-9877-4728-B83D-2D045A8C8FC6@kba.biglobe.ne.jp> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-workers@zsh.org Subject: Re: PATCH: nested ${(P)} (formerly SHWORDSPLIT and leading spaces) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Nov 14, 12:07am, Jun T. wrote: } } It seems ${${(Pr.n.)name}} is behaving like ${(P)${(r.n.)name}}. } Instead, the expected behavior may be ${(r.n.)${(P)name}}. Yes, that definitely seems to be the issue. The "Rules" say that (P) is applied at step 4, whereas padding should not occur until step 22. The flags (r), (l), and (j) are all applying in unexpected order with respect to (P), but double-quote joining, (s), (f), and shwordsplit are applied in the expected order, as also are (U), (L), (u), (o), (0), and rcexpandparam.