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

Re: command -p should enable builtins not in path



> On 21 August 2020 at 16:49 Martijn Dekker <martijn@xxxxxxxx> wrote:
> 
> 
> Op 21-08-20 om 14:03 schreef Peter Stephenson:
> > I tend to agree there's not a lot of point in this incompatibility,
> > given where the "-p" flag originates --- it's a relatively late
> > addition to zsh.
> > 
> > Here's one possible fix.
> 
> It seems inconsistent/unexpected if 'command -p cd' works, but 'command 
> cd' doesn't.

However, "command" with no option is a very long-standing piece of zsh
syntax to pick an external command, so that's certainly not going to change.

pws




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