sh.exe": syntax error near unexpected token `('

bash, command, command-line, git

Solution

you need to quote the directory name or escape special characters

try

cd "Program Files (x86)"

or

cd Program\ Files\ \(x86\)

Problem

All that I'm trying to do is `cd` into `Program Files (x86)` and I get this: Already in the C directory: ``` $ cd Program Files (x86) sh.exe": syntax error near unexpected token `(' ```

Original source

Related problems