Cygwin unexpected token `(' on cd

倖福魔咒の 提交于 2021-02-13 11:37:51

问题


I have got Program Files and Program Files (x86) directory at C. I can access to Program Files using $ cd Program\ Files\ from windows 8 but this $ cd Program\ Files\ (x86) command returns following error:

sadaf2605@Sadaf /cygdrive/c
$ cd Program\ Files\ (x86)
-bash: syntax error near unexpected token `('

回答1:


You have to escape the parentheses as well:

$ cd Program\ Files\ \(x86\)

Or just use quotes:

$ cd "Program Files (x86)"


来源:https://stackoverflow.com/questions/15080184/cygwin-unexpected-token-on-cd

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!