1
1
Using cygwin, I'm trying to create the following alias:
alias write="/cygdrive/c/Program Files (x86)/Notepad++/notepad++.exe"
When I execute the command to launch notepad++ directly, I have no issues. But when I alias it and then try to call write
, I get an error:
-bash: syntax error near unexpected token `('
I've also tried removing the quotes and escaping the spaces and parens:
alias write=/cygdrive/c/Program\ Files\ \(x86\)/Notepad++/notepad++.exe
and got the same result.
I have a workaround where I place a symlink to the executable in my home folder and alias write
to the symlink, but I'd prefer to have it aliased directly. Is this possible?
This is due to the expand_aliases option of bash – Spacen Jasset – 2017-10-09T16:16:54.927