When I type just $PATH as below, the output starts with -bash: followed by the value of $PATH then at the end it prints : No such directory
whereas the output of echo $PATH does not produce that output.
Is the bash's readline involved?
[user1@Server1 ~]$ $PATH
-bash: /usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/user1/.local/bin:/home/user1/bin: No such file or directory
When I just do echo $PATH the output is:
/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/user1/.local/bin:/home/user1/bin
$PATHtries to run your PATH as a command,echo $PATHoutputs your PATH. – DisplayName Sep 19 '17 at 19:48$PATHto do? – Kusalananda Sep 19 '17 at 21:13No such file or directory. Bash is not finding the/usr/local/bin:/usr/bin[...]executable, and hence the error. – Jorge Bellon Sep 20 '17 at 07:48