I have this echo command:

$ echo "alias notepad++="C:/Program\ Files\ "(x86)"/Notepad++/Notepad++.exe"" >> ~/.bashrc

enter image description here

As shown in the picture it does not recognize the parenthesis.

  • Since you have no variables in that line, you could also use single quotes: echo 'alias notepad++="C:/Program Files (x86)/Notepad++/Notepad++.exe"' – mivk Sep 17 '19 at 23:28

Escape them. Use this instead:

echo "alias notepad++="C:/Program\ Files\ \(x86\)/Notepad++/Notepad++.exe"" >> ~/.bashrc
  • it works for me. thx – absentia Jan 8 '16 at 1:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.