Cygwin意外令牌'('在CD上 [英] Cygwin unexpected token `(' on cd

查看:59
本文介绍了Cygwin意外令牌'('在CD上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 C 上有 Program Files Program Files(x86)目录.我可以从Windows 8使用 $ cd Program \ Files \ 访问 Program Files ,但是此 $ cd Program \ Files \(x86)命令返回出现以下错误:

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 `('

推荐答案

您还必须转义括号:

$ cd Program\ Files\ \(x86\)

或仅使用引号:

$ cd "Program Files (x86)"

这篇关于Cygwin意外令牌'('在CD上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆