Terminal opening on MacBook Pro gives bash location issue - bash

When I open my terminal on MacBook Pro I get the below message, but command line seems work fine after this, but I would like to correct this message coming up. MESSAGE:
-bash: occur: command not found
-bash: ----Beginning: command not found
-bash: is: command not found
-bash: other: command not found

Related

Mac terminal zsh command not found - how to solve?

I get with carious terminal commands the following error:
zsh: command not found: -X
What is this error?
I get this with CD as well for instance, but not with all commands. LS for instance works fine.
export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"

Bash: make: command not found even after installing msys-make pakage

The error in the title is what appears on my Bash on Windows 10 when I try using make I did read many tips and none seems to work when I tried mingw-get install msys-make.
I got the error message that it's already installed on my pc. Now I dunno what to do, even when the package is installed, bash: make: command not found is still there. On the other hand, I did add almost all the possible path to PATH, and sometimes the error change to
/mingw64/make-4.3/tests/scripts/variables/make: line 3: =: command not found
/mingw64/make-4.3/tests/scripts/variables/make: line 5: =: command not found
/mingw64/make-4.3/tests/scripts/variables/make: line 7: syntax error near unexpected token `q!'
/mingw64/make-4.3/tests/scripts/variables/make: line 7: `run_make_test(q!'
You should add its path to the $PATH variable and reboot Windows. OS updates viriables after reboot.

Error shown each time open mac terminal

Each time I open my terminal(mac laptop). I get this weird looking error which never goes away. Almost a year now. Please what does it mean?
-bash: command substitution: line 1: syntax error near unexpected token `newline'
-bash: command substitution: line 1: `/usr/libexec/java_home -v <version>'
https://i.stack.imgur.com/4sXcY.png
Although the terminal still works but I don't know what these two lines mean.

terminal mac - bash command not found, permission denied and '&gt' in prompt

I tried to change colors in terminal following this guide:
http://osxdaily.com/2013/02/05/improve-terminal-appearance-mac-os-x/
I created bash_profile file, saved and quit terminal. Now when I open the terminal I get this:
Last login: Mon Oct 17 01:36:24 on ttys000
-bash:  : command not found
-bash:  : command not found
-bash:    git: command not found
-bash: gt: command not found
-bash: /dev/null: Permission denied
->> $ this last line is changed on stackoverflow. I do not understand why. Please look at the photo below.
I deleted bash_profile and I still get the same.
I did not use the flag asking for moving the post as suggested in the comment because I had already posted the same post on AskDifferent.
The answer to the problem is on AskDifferent:
https://apple.stackexchange.com/questions/257603/terminal-change-of-colours-guide-file-bash-profile-bash-not-found-permissi
The problem with a syntax error is caused by HTML markup in the source I copy/pasted this from.

bashrc issue in cygwin

I updated my .bashrc with following text to run ns2 and saved it.
export PATH=$PATH:/home/user/nsallinone-2.34/bin:/home/user/ns-allinone-2.34/tcl8.4.18/unix:/home/user/ns-allinone-2.34/tk8.4.18/unix
export LD_LIBRARY_PATH=/home/user/ns-allinone-2.34/otcl-1.13:/home/user/ns-allinone-2.34/lib
export TCL_LIBRARY=/home/user/nsallinone-2.34/tcl8.4.18/library
Now when i run my Cygwin, each time it displays error as:
-bash: $'\r': command not found
Even now i have removed the above text but it still gives error.
Do i have to recompile ./bashrc, if I have how i will do that?
Now when i run my Cygwin, each time it displays error as:
-bash: $'\r': command not found
It seems that you edited your .bashrc using an application that added CR to the file.
Running dos2unix would remove the CR:
dos2unix /path/to/.bashrc

Resources