Quote:
Originally Posted by
Corona688
Adding a relative directory into your PATH can have problems beyond the obvious.
Many shells cache a list of available commands they find in PATH. Put a relative directory in there, and they may not always find all available commands because they don't know the cache needs to be regenerated every time you cd. Some may even crash if you put a relative directory in PATH.
I never suggested that such a thing should be done. I simply noted that with PATH set to
. command lookup behaves like filename lookup (an observation which was followed by some of the disastrous consequences).
Building such a system would require auditing/rewritting all of its scripts. In the wake of such a feat, it shouldn't be too much trouble to disable the shell's caching, which in such an environment would serve no purpose.
Regards,
Alister
P.S. Corona, thanks for the icode markup fix.