Skip to content

microsoft-coreutils@2026.5.29: Adding Scripts, Remake shims#8110

Open
SiriosDev wants to merge 6 commits into
ScoopInstaller:masterfrom
SiriosDev:rework-ms-cu
Open

microsoft-coreutils@2026.5.29: Adding Scripts, Remake shims#8110
SiriosDev wants to merge 6 commits into
ScoopInstaller:masterfrom
SiriosDev:rework-ms-cu

Conversation

@SiriosDev

@SiriosDev SiriosDev commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Following the raw script included in the original repository, I created a script that creates hard links in bin and cmd, removes the placeholder file, and modifies and runs pwsh-install.ps1 to reference HKCU instead of HKLM, so that UAC is no longer required even for CurrentUser mode. (And Uninstall too of course).

In this way, the shipped “patch” should apply to all $PROFILE, except for legacy versions (>5.0), which are not supported by the original installer

Relates to #8107

  • Use conventional PR title: <manifest-name[@version]|chore>: <general summary of the pull request>
  • I have read the Contributing Guide

@SiriosDev SiriosDev marked this pull request as draft June 5, 2026 20:36
@SiriosDev SiriosDev marked this pull request as ready for review June 5, 2026 20:42
Comment thread bucket/microsoft-coreutils.json Outdated
Comment on lines 23 to 24
"cmd/arch.cmd",
"arch"

@z-Fng z-Fng Jun 6, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem to work.

> arch
MZ�$�
'MZ�$�' is not recognized as an internal or external command,
operable program or batch file.

> D:\Scoop\shims\arch.cmd
MZ�$�
'MZ�$�' is not recognized as an internal or external command,
operable program or batch file.

I'd suggest waiting for the next portable release. See: microsoft/coreutils#18

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try rerunning PowerShell or opening another instance directly, otherwise the new $PROFILE is not loaded

@z-Fng z-Fng Jun 6, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it can only be used in PowerShell, then there's no need to create a shim.

I'd suggest waiting for the next portable release. See: microsoft/coreutils#18

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it can only be used in PowerShell, then there's no need to create a shim.

As far as I understand, only pwsh requires these specific tweaks; cmd shouldn't, assuming I've got it right:
https://github.com/microsoft/coreutils#windows-caveats

@z-Fng z-Fng Jun 6, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it confusing to create a shim that doesn't actually work? I think there might be a misunderstanding regarding how Scoop shims work. Please refer to:

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh right, now should work
I thought about shimming the cmd files to follow the script's instructions, but it turns out that's not necessary because the script references the executables directly in the cmd subfolder

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

Successfully merging this pull request may close these issues.

2 participants