Eric Blake <[email protected]> writes: > $ echo 'echo one' > ./c=d > $ echo 'echo two' > ./-- [...] > $ env a=b -- c=d echo three > one > > Huh? ./-- is not on my PATH, why was it executed?
This executed c=d. > > $ PATH=:$PATH env a=b -- c=d echo three > two > > Huh? This should have executed ./--, not ./c=d. This executed --. I'm getting "env: --: No such file or directory" in the first case and in the second case "/bin/sh -- c=d echo three" is executed, which executes c=d eventually. Andreas. -- Andreas Schwab, [email protected] GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."
