5

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.

1
  • 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
    Commented Sep 17, 2019 at 23:28

1 Answer 1

11

Escape them. Use this instead:

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .