mrsh icon indicating copy to clipboard operation
mrsh copied to clipboard

PATH=x command -v uses original PATH instead of x

Open Hello71 opened this issue 5 years ago • 2 comments

https://pubs.opengroup.org/onlinepubs/9699919799/utilities/command.html https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_09_01

Hello71 avatar Apr 03 '20 22:04 Hello71

This applies to all builtins in general.

emersion avatar Apr 03 '20 22:04 emersion

took a look at https://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap08.html, I think some other builtins affected (probably not exhaustive):

LC_MESSAGES=x anything-with-output
IFS=x read
HOME=x cd

Hello71 avatar Apr 03 '20 23:04 Hello71