A am using bash as a default shell.
If I execute xterm
(which is opened in XQuartz), I get the following errors:
bash: unsetenv: command not found
bash: unsetenv: command not found
bash: setenv: command not found
bash: setenv: command not found
bash: setenv: command not found
bash: setenv: command not found
bash: setenv: command not found
bash: unsetenv: command not found
It seems that a configuration file for csh is sourced.
If I execute xterm
again in the xterm
window, I get a new window without any errors.
In my home directory I have nothing with setenv
or unsetenv
In both cases (from the terminal or from xterm):
$ type xterm
xterm is /opt/local/bin/xterm
Which file is read? Why only on the first execution?
xterm
?type xterm
in Bash say?xterm is /opt/local/bin/xterm
(I updated the question)bash
as your login shell. There seems to be a problem with your bash environment at login and not at next calls. This difference might come simply from the fact that these 2 are different ( ex./bin/bash
≠/opt/bin/bash
) or that you have a bug within~/.bash_profile
. Which one is yourbash
at login ( in/etc/passwd
) and the next ones (type bash
)? Could you check that your~/.bash_profile
doesn't source a C-shell script?