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

Re: command -p should enable builtins not in path



On 2020-08-21 16:49:06 +0100, Martijn Dekker 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 cd" is not guaranteed to work in a POSIX shell,
e.g. if $PATH has changed.

-- 
Vincent Lefèvre <vincent@xxxxxxxxxx> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)




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