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

command cd doesn't work on some builds of zsh



Hi, I found inconsistent behaviour of the command builtin in some builds on zsh.

On Fedora 39:
$ zsh --version
zsh 5.9 (x86_64-redhat-linux-gnu)
$ zsh -c 'command cd'

On Debian 10:
$ zsh --version
zsh 5.9 (x86_64-unknown-linux-gnu)
$ zsh -c 'command cd'
zsh:1: command not found: cd

According to the manual, command cd should work:
Run command with args suppressing the normal shell function lookup. Only builtin commands or commands found in the PATH are executed.

Any idea why different builds on zsh produce different outcomes here?

Thanks,
Ajeet


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