From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8396 invoked by alias); 11 Oct 2016 13:40:45 -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: 39607 Received: (qmail 10467 invoked from network); 11 Oct 2016 13:40:45 -0000 X-Qmail-Scanner-Diagnostics: from kahlil.inlv.org 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(37.59.109.123):SA:0(-0.3/5.0):. Processed in 0.452996 secs); 11 Oct 2016 13:40:45 -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.3 required=5.0 tests=RP_MATCHES_RCVD autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: martijn@inlv.org X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at inlv.org does not designate permitted sender hosts) Subject: Re: Is "command" working right, yet? To: Zsh hackers list References: <160202163744.ZM2066@torch.brasslantern.com> <56B761B8.6000507@inlv.org> <160925201328.ZM24563@torch.brasslantern.com> <20160927110820.7661e8ad@pwslap01u.europe.root.pri> <564b0585-4286-a6c6-d64e-b190af5ace57@inlv.org> <20160928113028.42512c91@pwslap01u.europe.root.pri> <1c0f3af3-068e-32f5-ee52-5122d519a4b8@inlv.org> <20160929095524.48a716e1@pwslap01u.europe.root.pri> From: Martijn Dekker Message-ID: <7ed97993-bd95-82b8-448c-e2170603a410@inlv.org> Date: Tue, 11 Oct 2016 15:40:33 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 MIME-Version: 1.0 In-Reply-To: <20160929095524.48a716e1@pwslap01u.europe.root.pri> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Op 29-09-16 om 10:55 schreef Peter Stephenson: > On Wed, 28 Sep 2016 19:37:46 +0100 > Martijn Dekker wrote: >> The options combine now, but builtins don't take precedence. As >> explained above, I'd expect "command -pv echo" to output simply "echo" >> and not "/bin/echo", because it's a builtin. Also 'command -pv :' should >> output ':'. > > OK, I've simply added that as a special case otherwise bin_whence() is > going to get too tortuous, plus some tests. Another issue crept in: 'command -v' and 'command -V' now always act as if the -p option is given, i.e. they always search the default system PATH for external commands rather than the current one. - Martijn