Terminal not working: -bash: exit: with: numeric argument required what to do?
I was trying to install F# compiler and interactive on my Mac, and part of the installation process required providing aliases in the bash profile file.
I suspect that I messed something up here, because now the terminal doesn't work at all, it only shows:
Last login: Fri May 18 09:44:33 on console
-bash: exit: with: numeric argument required
[Process completed]and here is the content of the .bash_profile file:
alias fsc="mono ~/FSharp-2.0.0.0/bin/fsc.exe"
alias fsi="mono ~/FSharp-2.0.0.0/bin/fsi.exe"and I am unable to type etc. in the terminal I also tried to start iTerminal, but it just crashes.
Any ideas on how I can get it to work again? I don't usually use the terminal.
1 Answer
Open your ~/.bash_profile with a text editor and edit out the section that gives you the error.
If you don't know where the error is, either paste the contents here or try removing your additions line by line, save the file and start a test terminal to see where it starts failing.
6