Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Is "command" working right, yet?



Op 29-09-16 om 10:55 schreef Peter Stephenson:
> On Wed, 28 Sep 2016 19:37:46 +0100
> Martijn Dekker <martijn@xxxxxxxx> 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



Messages sorted by: Reverse Date, Date, Thread, Author