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

Pre-command parameter assignments affect command lookup?



I was surprised by the following:

    # Rationale: I wanted the man page for /usr/local/bin/bash, which comes
    # after /bin/bash in my path.
    % PATH=/usr/local/bin man bash
    zsh: command not found: man

The value of `PATH` is incorrectly modified in the current shell before
`man` is executed (indeed, it prevents the execution from happening because
the command cannot be found).

--

Clint


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