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