Skip to content
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

Bash shims fail to run if scoop is installed in a paths with spaces #4096

Closed
nickhutchinson opened this issue Aug 22, 2020 · 2 comments
Closed

Comments

@nickhutchinson
Copy link

The bash shims scoop creates for powershell scripts don't work if scoop is installed into a path with spaces. For example, here's the contents of my C:\Users\Nick Hutchinson\scoop\apps\scoop\shims\scoop:

#!/bin/sh
powershell.exe -noprofile -ex unrestricted "C:\Users\Nick Hutchinson\scoop\apps\scoop\current\bin\scoop.ps1"  "$@"

Running scoop in a git-bash shell fails with the following error:

Program 'Nick' failed to run: No application is associated with the specified file for this operationAt line:1 char:1
+ C:\Users\Nick Hutchinson\scoop\apps\scoop\current\bin\scoop.ps1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~.
At line:1 char:1
+ C:\Users\Nick Hutchinson\scoop\apps\scoop\current\bin\scoop.ps1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
    + FullyQualifiedErrorId : NativeCommandFailed
@Ash258
Copy link
Contributor

Ash258 commented Aug 22, 2020

Duplicate of #3878

@rasa
Copy link
Member

rasa commented Oct 20, 2020

Duplicate of #3878

@rasa rasa marked this as a duplicate of #3878 Oct 20, 2020
@rasa rasa closed this as completed Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants