That output looks a lot like something called alias
with fewer parameters than intended.
Try running
echo | $SHELL -ix | grep alias
to find whatever is printing the annoying line, then grep
for that in your home directory, /etc
, perhaps /usr/share
, and wherever else you might have put something that influences your shell.
(As for that command: -x
prints a trace of all commands that are executed, and -i
ensures you get a login shell (i.e. your shell's rc and profile files are loaded) even though input is coming from a pipe.)
bash
have you looked at/etc/bashrc
/etc/profile
, and the files in/etc/bash_completion.d
? – Anthon Jun 23 '15 at 8:17env SHELLOPTS=xtrace /path/to/Terminal
– Stéphane Chazelas Jun 23 '15 at 8:27$SHELL -x
. – n.st Jun 23 '15 at 8:45$SHELL
. It may very well start it as a login shell. In which case,bash -lx
may be better. – Stéphane Chazelas Jun 23 '15 at 8:58env SHELLOPTS=xtrace
can also be useful in that it activatesxtrace
also for bash scripts (and on OS/X sh is bash) called from those bashrc files. – Stéphane Chazelas Jun 23 '15 at 10:33