We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The .cmd shim created by Scoop has a 2>nul redirect at the end which suppresses stderr output, breaking behavior on most scripts (ScoopInstaller/Main#6090 (review), ScoopInstaller/Main#6117 (review)). Example shim from neofetch:
.cmd
2>nul
stderr
Example command for reproduction: neofetch -v
neofetch -v
Error messages are not shown (called from the .cmd shim on PowerShell)
Error messages should be shown (Example from bash)
It used to be working before, and the regression was introduced in a9ca75c.
Perhaps a proper check of the wslpath and cygpath command first should work:
wslpath
cygpath
@rem C:\Users\rycae\scoop\apps\wcurl\current\wcurl @bash -c "command -v wslpath >/dev/null 2>&1" @if %errorlevel% equ 0 ( @bash "$(wslpath -u 'C:\Users\rycae\scoop\apps\wcurl\current\wcurl')" %* ) else ( @bash -c "command -v cygpath >/dev/null 2>&1" @if %errorlevel% equ 0 ( @bash "$(cygpath -u 'C:\Users\rycae\scoop\apps\wcurl\current\wcurl')" %* ) )
Windows version: 11
OS architecture: 32bit, 64bit
PowerShell version: 7.4.4
Additional software: WSL, Git
{ "aria2-warning-enabled": false, "last_update": "2024-08-19T15:35:17.7825723+08:00", "scoop_branch": "master", "scoop_repo": "https://github.com/ScoopInstaller/Scoop" }
The text was updated successfully, but these errors were encountered:
Any updates on this?
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Bug Report
The
.cmd
shim created by Scoop has a2>nul
redirect at the end which suppressesstderr
output, breaking behavior on most scripts (ScoopInstaller/Main#6090 (review), ScoopInstaller/Main#6117 (review)). Example shim from neofetch:Example command for reproduction:
neofetch -v
Current Behavior
Error messages are not shown (called from the
.cmd
shim on PowerShell)Expected Behavior
Error messages should be shown (Example from bash)
Additional context/output
It used to be working before, and the regression was introduced in a9ca75c.
Possible Solution
Perhaps a proper check of the
wslpath
andcygpath
command first should work:System details
Windows version: 11
OS architecture: 32bit, 64bit
PowerShell version: 7.4.4
Additional software: WSL, Git
Scoop Configuration
The text was updated successfully, but these errors were encountered: