When I start terminal I get the error
-bash: export: `PATH;': not a valid identifier
Why?
I've looked in the two files which I think bash uses at startup, and I cannot see an issue:
/etc/profile
# System-wide .profile for sh(1)
if [ -x /usr/libexec/path_helper ]; then
eval `/usr/libexec/path_helper -s`
fi
if [ "${BASH-no}" != "no" ]; then
[ -r /etc/bashrc ] && . /etc/bashrc
fi
~/.bash_profile
export PATH="$PATH:/usr/local/autoconf/bin"
export PATH="$PATH:/usr/local/automake/bin"
export VISUAL=vscodeeval $(/usr/libexec/path_helper -s)
(N.B. The file /usr/libexec/path_helper
is binary, and /etc/bashrc
does not contain the text 'PATH'.)
Where is the error coming from? I cannot see PATH;
with the trailing semicolon in either startup profile.