13
1
when I write in terminal
echo $PATH
my output is
:/home/bo/bin:/usr/local/bin:/usr/sbin:/usr/local/sbin:/usr/bin:/sbin:/bin
but when I write just :
$PATH
this output I do not understand right, output is:
bash: :/home/bo/bin:/usr/local/bin:/usr/sbin:/usr/local/sbin:/usr/bin:/sbin:/bin: No such file or directory
and my question is, why did it write "No such file or directory?" every directory from PATH variable exists.
I guess the expectation that
$PATH
would essentially print the variable to the screen without trying to execute it, however, this is not the case. – iDrwish – 2019-02-15T15:49:21.577