From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2929 invoked by alias); 13 Jul 2016 17:36:09 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21764 Received: (qmail 12246 invoked from network); 13 Jul 2016 17:36:09 -0000 X-Qmail-Scanner-Diagnostics: from mail-pa0-f41.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.220.41):SA:0(0.0/5.0):. Processed in 0.126915 secs); 13 Jul 2016 17:36:09 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at brasslantern.com does not designate permitted sender hosts) 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; bh=gE0dgnvphZUHhbzOVs8taznWuOdICpeePHJ75pSctpw=; b=kSH59g5DfIzocGywbnwCSrfX1FjpM9fiqQzrgVplWxAE71hcHHu/JzvxEeaHZVgN82 oAV9dznCTYzGmSM6gYGPz8DQe5aR6CMUekhls2IfLrJq2STgDFTfXh9LzkD0XYjatcME K0Ze20Ch/1Xld+xbTprqaHihdQEWv9WplDVicA0X+/iaJtwfYlrbHK/DrO6wrKqfW0bC Wt01Paz0HlBaAzqGj4HhZMWPPIPvaG1f13/x8S4Z8TWmWP+ZXirxILlCkgYAx7b/wFe8 fcG+0d3hB0yTxr+yrKE8XL+BN1P7bWJnsZNL44XXujonF6AirYw29gH13YONjFiIVGh8 Rnhw== 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; bh=gE0dgnvphZUHhbzOVs8taznWuOdICpeePHJ75pSctpw=; b=jufVUdlZFz1Vac/Dp/qpfHsFC9HgFfks1nXNduD9NsE/KbOgkvdiQWN/x23xuiyOnt siQ04VPc3U9Dc2NZk31WxHCqur2xTtuQOZ+FFdZ6L6fnA6gu5ucx4UyyP1Am5h3EggkZ CVgjXdtgXlihPSbHfJdae2KHJN+r3IIqLCFDlU5u9W+ieE+ZX4K0x2yWMK/auZN6hWn9 RAUAjKQauhZ4MH0W5b3E2r+WWh9za8RoS2s/xNubY8EvY1kgj5vYDVQsxpa59z9nCWGy balGij5IV20aT+vA83b63JjX9zCIDFhDIxLEp+C/41dYBBxA+Ib3Tz5DBSLzFt8aqYbk osag== X-Gm-Message-State: ALyK8tJShnxpRryXVZwibpqmaTUQjfVRdmQVT3pD4dWBLxsBDt4k/f1aYzq2FT/H2mz5SQ== X-Received: by 10.66.25.78 with SMTP id a14mr15314632pag.11.1468431364252; Wed, 13 Jul 2016 10:36:04 -0700 (PDT) From: Bart Schaefer Message-Id: <160713103627.ZM21341@torch.brasslantern.com> Date: Wed, 13 Jul 2016 10:36:27 -0700 In-Reply-To: <20160713074151.GH1537@isis.sigpipe.cz> Comments: In reply to Roman Neuhauser "Re: Next release (5.3)" (Jul 13, 9:41am) References: <20160712075849.GG1537@isis.sigpipe.cz> <160712094017.ZM17395@torch.brasslantern.com> <20160713074151.GH1537@isis.sigpipe.cz> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: Next release (5.3) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Jul 13, 9:41am, Roman Neuhauser wrote: } } i agree with Daniel regarding limited utility of :a, and i already } (mis)use :A as if it was doing 2. Cf. PWS's example script RE utility of :a / current :A. } > The emerging consensus seems to be for: } > } > 1. :a is as before } > 2. :A is as before } > 3. new modifier calls realpath and does (1) if no realpath } } re "does (1) if no realpath": really (1), not (2)? Well, if no realpath, then (1) and (2) are the same, so ... } in order of decreasing preference: } } 1 change the meaning of :A so that it is equivalent to realpath(3) } where it exists and to :a on systems without realpath(3) } 2 new modifier that calls realpath(3) with fallback to :A } 3 new modifier that calls realpath(3) with fallback to :a ... there's no useful distinction between your #2 and #3. } if i could have a pony then the most favorable solution would be } } 0 change the meaning of :A so that it is always equivalent to } realpath(3), using an implementation bundled with Zsh where } necessary Noted. Somewhat more likely would be a new modifier that implements realpath by stealing code from somewhere that is licensing-compatible.