chrisant996 / clink

Bash's powerful command line editing in cmd.exe
https://chrisant996.github.io/clink/
GNU General Public License v3.0
3.45k stars 135 forks source link

"Syntax error" with cmd /e:off #569

Closed Gei0r closed 6 months ago

Gei0r commented 6 months ago

I have a script that runs a cmd shell like this: cmd.exe /e:off /c "<COMMAND>"

# works without clink:
D:\>cmd.exe /e:off /c "echo a"
a

D:\>clink autorun install
Current AutoRun values
[...]
Clink successfully installed to run when cmd.exe starts (for current user).

# No longer works after installing
D:\>cmd.exe /e:off /c "echo a"
""AMD64"=="x86"" kann syntaktisch an dieser Stelle nicht verarbeitet werden.
# Roughly translated: ""AMD64"=="x86"" can't be syntactically processed at this point.

# Still works without /e:off
D:\>cmd.exe /c "echo a"
a
$ clink --version
1.6.4.1dd7ec
chrisant996 commented 6 months ago

Thanks for reporting this! It got broken in v1.3.47 in Oct 2022.