I have a following lines in my .bash_profile.if [ -d $HOME/bin ] ; then    PATH=$HOME/bin:$PATHfiI think I found it somewhere in the internet.Is it also ok, if I write only PATH=$HOME/bin:$PATH without checking directory existence?Does it cause a problem if I add a non-existing path to $PATH?
Is there a problem if I add a non-existing path to `PATH` environment variable?
directory;path;test
It is easy to try this out. bash will not complain if you add a non-existing directory in PATH (but obviously it will not find any commands or scripts in there either).If you later create the directory and store executables in there, bash will find them.