Re: [PATCH] Ensure the command found in the hash table exists, not only on POSIXLY_CORRECT
Thanks for your answer. Chet Ramey writes: >> I have a question: how bash should behave in the case you have: >> >> --- >> export PATH=a:b:$PATH >> >> mkdir a b >> >> cat > b/prog.sh << EOF >> echo b/prog.sh >> EOF >> >> chmod +x b/prog.sh >> >> prog
[PATCH] Ensure the command found in the hash table exists, not only on POSIXLY_CORRECT
EOF echo b/prog.sh EOF chmod +x b/prog.sh prog.sh cat > a/prog.sh << EOF echo a/prog.sh EOF chmod +x a/prog.sh prog.sh --- Which prog.sh should be used in this case? a/prog.sh or b/prog.sh? The former has a higher precedence in PATH but the la