I am getting an error message for this alias:
alias ejectall='osascript -e 'tell application "Finder" to eject (every disk whose ejectable is true)''
And here is the error message:
-bash: .bashrc: line 15: syntax error near unexpected token `('
-bash: .bashrc: line 15: `alias ejectall='osascript -e 'tell application "Finder" to eject (every disk whose ejectable is true)'''
I got many aliases there, but i cannot understand this message! I found many websites with lots of different suggestions of the syntax of the String.
I am on OS X Mavericks (10.9.3).
My question is:
How to find out my bash version, and depending on that, the right syntax for my bash files?