-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[Bug]scoop shim info : ERROR: Option -global not recognized. #5094
Comments
Related code: Lines 71 to 76 in 4a31bd3
The same error occurs with the subcommand @niheaven |
Discussion about avoiding |
@rashil2000 @niheaven Alternatively, we can make
If so, we have to use
|
Hmm, it's a bug, yes. I'll fix it. That's strange…… I've tested all the args in that PR. |
Lines 32 to 36 in 4a31bd3
The above function handles parameters and something likes I'm not sure how to fix it (we've discussed that |
I noticed this while debugging yesterday. So IMO, we definitely have to give up the current way of parsing arguments in the
Why? If we just introduce the terminator flag |
I'll test |
💡 This can also be resolved if the terminator flag |
@niheaven Anything I can do to help? |
The weird thing is also that # scoop shim info sudo
Local shim not found: sudo
But a global shim exists, run 'scoop shim info sudo -global' to show its info although it is there : # (gcm sudo -ShowCommandInfo | Out-String).Trim()
Name : sudo.exe
ModuleName :
Module : @{Name=}
CommandType : Application
Definition : C:\ProgramData\scoop\shims\sudo.exe
ParameterSets : {} |
@niheaven Sorry, I made a mistake. 🤦🏻♂️ We don't have to change this. Using File $args File pwsh -file test.ps1 %* Run
|
Yes, I've found that, and cannot continue 🤣 |
Let me try. I'll create PRs for this later. |
Bug Report
Current Behavior
Hi, I'm trying to display the scoop shim information of the
sudo
command :This comment suggest us to type the command scoop shim info sudo -global :
Expected Behavior
The shim information of
sudo
is displayed.Additional context/output
Possible Solution
System details
Windows version: 10 Pro
OS architecture: 64bit
PowerShell version:
Additional software: [(optional) e.g. ConEmu, Git]
Scoop Configuration
The text was updated successfully, but these errors were encountered: