echo $path returns blank on Mac
5,609
Path needs to be in all caps ie $PATH. Bash is case sensitive.
Related videos on Youtube
Author by
Suraj Sharma
Updated on September 18, 2022Comments
-
Suraj Sharma over 1 year
echo $path
is returning blank for me. The following are contents of my.bash_profile
.CHANGE PROMPT export PS1="►►" export TERM=xterm-color export GREP_OPTIONS='--color=auto' GREP_COLOR='1;32' export CLICOLOR=1 export LSCOLORS=ExFxCxDxBxegedabagacad #PATH #export PATH="/usr/local/sbin" #export PATH="$PATH:/Library/Developer/CommandLineTools/usr/bin" #export PATH="$PATH:/Users/suraj/Scripts" #export PATH="$PATH:/Users/suraj/Library/Mobile Documents/com~apple~CloudDocs"
Notice that I have commented out the path lines but
echo $path
still returns blank if I uncomment them.