* Pre-command parameter assignments affect command lookup?
@ 2014-10-03 20:14 Clint Hepner
2014-10-03 20:34 ` Bart Schaefer
0 siblings, 1 reply; 2+ messages in thread
From: Clint Hepner @ 2014-10-03 20:14 UTC (permalink / raw)
To: zsh-workers
[-- Attachment #1: Type: text/plain, Size: 402 bytes --]
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Pre-command parameter assignments affect command lookup?
2014-10-03 20:14 Pre-command parameter assignments affect command lookup? Clint Hepner
@ 2014-10-03 20:34 ` Bart Schaefer
0 siblings, 0 replies; 2+ messages in thread
From: Bart Schaefer @ 2014-10-03 20:34 UTC (permalink / raw)
To: Zsh hackers list
[-- Attachment #1: Type: text/plain, Size: 219 bytes --]
On Oct 3, 2014 1:15 PM, "Clint Hepner" <clint.hepner@gmail.com> wrote:
> % PATH=/usr/local/bin man bash
> zsh: command not found: man
That's standard (correct) behavior for any shell; try it in bash, ksh, etc.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-10-03 20:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-03 20:14 Pre-command parameter assignments affect command lookup? Clint Hepner
2014-10-03 20:34 ` Bart Schaefer
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).