Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Pre-command parameter assignments affect command lookup?
- X-seq: zsh-workers 33348
- From: Clint Hepner <clint.hepner@xxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Pre-command parameter assignments affect command lookup?
- Date: Fri, 3 Oct 2014 16:14:59 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=kMA1sz/Y9e1aoPZNfWOE9yIF0MdBoRCrpNmEWcXQojg=; b=PI7OSerQdxb7FLRGHbRLpkbJcPpZ8g3K2YKv+WNQbmI17enzS1rmOWy1uBfvWVBO0s Bs/QEqqyCxRwOWEAQoN0viHut5Q13kmJqZiLVjIv0e0ULWQ8gK8IJ9wCKmfXn8mFXltV WQELY7aoHLeph1jB7nQl6UE4Rcfz2h5UZ4XbSAOVoF+bFZeZYHBGiLreUjDXykti+gO4 1mph2Cg3UPeCmYGGmGlN+2pE3Ri0Vw4TzZCAj9XmZXSQEN+jY+8XJClEhJBnSrb3Hi4Z S+o6yJPQQ6AxuS//2nwIQt6sde/pTNiY9SDt7ZOsbh9ck07eGKu37UYDIfGrWGqRvgGh YqQA==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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