For some strange reason, I’m getting a “No such file or directory” error for my $PATH variable. I have tried to edit my path using export, changing it from what it was originally to every permutation from a single directory path to the original.
When there is one directory (e.g., export PATH=/bin), I get “/bin: Is a Directory”. But once I add more than one directory (e.g., export PATH=/bin:/sbin), I get “No such file or directory”.
I’m curious to see what the cause of this issue is!
RE; your comment:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/usr/local/mysql/bin: No such file or directorywill be generated if you have a line which says:maybe on its own, or maybe you have
$PATH=.... That is, the shell is trying to execute a program named:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/usr/local/git/bin:/usr/local/mysql/binLose the $ on the left-hand side.