zsh-workers
 help / color / mirror / code / Atom feed
* command cd doesn't work on some builds of zsh
@ 2024-02-13  9:54 Ajeet D'Souza
  2024-02-13 10:05 ` Andreas Kähäri
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Ajeet D'Souza @ 2024-02-13  9:54 UTC (permalink / raw)
  To: zsh-workers

[-- Attachment #1: Type: text/plain, Size: 571 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 1308 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-02-13 14:27 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-13  9:54 command cd doesn't work on some builds of zsh Ajeet D'Souza
2024-02-13 10:05 ` Andreas Kähäri
2024-02-13 11:48   ` Ajeet D'Souza
2024-02-13 12:02     ` Peter Stephenson
2024-02-13 10:48 ` Peter Stephenson
2024-02-13 14:25 ` Lawrence Velázquez

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).