I am not exactly sure what’s happening here – I open a terminal window on my mac and see the following:
Last login: Tue Jun 26 00:36:08 on ttys002
-bash: : command not found
-bash: : command not found
This seems to me like some file is being executed whenever I open a new terminal window, but I have no idea how I’d find this file. Is there some list of files that run when terminal opens that I could find easily? I’d love to know what is happening here (and how it came about in the first place)
And (when you are lucky) you will find the places where are these strange commands with
ThankandSorry.It is possible although does these lines are produced during some command substitution.
In that case you will not find the strings. I would recommend then add
set -xto~/.bash_profileto find the string that produces these messages.