-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
installscripts
command fails in PowerShell
#421
Comments
What are the contents of the Has your scoop directory always had a space in it, or was that a more recent change? The error message looks like something is mishandling quoted arguments. Maybe there's a bug in the shim, or maybe there's a bug in the PowerShell version of scoop. Whatever is happening seems to be unrelated to Clink. |
Interesting; maybe relevant: ScoopInstaller/Scoop#5313 |
The contents of clink.cmd are as follows: @rem E:\Scoop Stuff\apps\clink\current\clink.bat
@"E:\Scoop Stuff\apps\clink\current\clink.bat" %* Scoop automatically creates shims based on the file extension. The code for The same .cmd file is invoked in both PowerShell and Command Prompt, so where could the difference be?
This one seems unrelated (it was fixed in a PR: ScoopInstaller/Scoop#5326) |
@rashil2000 I took a closer look.
I eventually tracked down what's happening (see further below). I chose to make guesses/assumptions to try to fill in the blanks in the info that was provided, but I guessed wrong, which is why I couldn't reproduce the problem at first.
I thought you meant it was a generic Command Prompt; but you must have meant CMD with Clink already injected. Remember that Clink sets a doskey alias for When troubleshooting, it can be useful to try variations, and especially to try the most basic variation (in this case, plain CMD.exe without Clink).
When fixing #361, I added code to I copied how Martin had been doing argument checks. But I wasn't paying close enough attention; the arguments checks were written in a way that produces errors when arguments are quoted and contain spaces or punctuation. Copying that syntax caused the fix for issue 361 to break with a quoted argument. Commit 7e5f5ab fixes all of the argument parsing checks in |
Oh, right, it makes sense now. Thank you so much for the speedy fix! |
This is related to the Scoop manifest for clink-completions, which uses the
clink installscripts ...
command.It used to work perfectly fine, but now when using this command in PowerShell, this error comes up:
Same error pops up on the
uninstallscripts
command. However,It does not show an error when ran through Command Prompt:
The only place where I can think "autorun" is coming from could be here:
I'm not aware if anything changed in the
installscripts
command upstream. How can I fix this?The text was updated successfully, but these errors were encountered: