1
As seen here, doing echo $PATH
gives me my full PATH, but doing simply $PATH
gives an incomplete version that looks like it hasn't been escaped properly somewhere:
Yet when I look into my configuration files, the only relevant lines for the PATH seem to be:
PATH=$PATH
...in .bashrc
, and...
export PATH=usr/local/sbin:/usr/sbin:$PATH
export PATH=/sbin:$PATH
export PATH=/cygdrive/b/users/me/desktop:$PATH
...in .bash_profile
. Both seem correctly formatted to me, so I'm unsure what's going on here. Can anyone else shed some light on it?
1Generally, the first thing on the command line should be a command name (well, or an assignment).
$PATH
is a variable... that doesn't contain a valid command name. So running$PATH
as a command is not really expected to do anything particularly sane. – Gordon Davisson – 2018-09-08T01:06:10.570