When I open a terminal on my Fedora machine (or ssh into it), I get a bunch of lines like this before the prompt:
declare -x CVS_RSH="ssh" declare -x DISPLAY="localhost:10.0" declare -x G_BROKEN_FILENAMES="1" declare -x HISTSIZE="1000" …
What is causing this? This may have occurred after I edited my
.bashrc, but I believe all I changed was to add another directory path to "PATH=".
Update (responding to heavyd's answer): I grep'ed
/etc/bashrc for "declare" and found nothing.
I looked at
~/.bashrc contains the following:
if [ -f /etc/bashrc ]; then . /etc/bashrc fi
I don't see anything in the
~/.bash_profile scripts except the above code, "PATH=…", "export …" and "alias …".
When I run my
.bashrc script (using "
bash ~/.bashrc") or
.bash_profile script I see the list of "declares", but no error messages. (I see nothing if I run
~./bash_profile is very simple:
# .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin export PATH
Solved: Thanks andrew.n, your suggestion helped me track it down. It turns out all those "declare -x …" lines are output if one runs
export (by itself), and I had accidentally inserted a CR in between "export" and "PATH=…" in my