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

bug or feature in how zsh looks for commands?



Is this the desired behaviour?

$ unsetopt autocd
$ mkdir bin/foobar
$ rehash
$ which which
which: shell built-in command
$ echo $ZSH_VERSION
3.0.1
$ which foobar
foobar not found
$ foobar
zsh: permission denied: foobar
$ sh
$ foobar
foobar: cannot execute
$ bash
bash$ foobar
bash: foobar: is a directory

Jari Kokko



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