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

Re: command -p should enable builtins not in path



Op 21-08-20 om 17:08 schreef Peter Stephenson:
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.

Of course. So what I'm trying to suggest is that this change to -p is maybe not a very good idea either. There is a long-standing expectation that 'command' runs an external command in native zsh mode, so why should that be different just because you're searching the default path?

Code that expects POSIX behaviour, such as that Intel build script, shouldn't be run in native zsh mode anyway. If it needs to cooperate with native zsh code, it can be loaded with sticky emulation.

- M.

--
||	modernish -- harness the shell
||	https://github.com/modernish/modernish
||
||	KornShell lives!
||	https://github.com/ksh93/ksh




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