You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The environment variable of "Path" is automatically expanded due to the modification of the environment variable by Scoop.
Current Behavior
Add an item to the user's environment variable: Foo=Bar;
Add %Foo% to the user's "Path" environment variable;
Then Bar can be obtained in the user's "Path" by %Foo%;
Try some installation that can change the user's "Path", such as scoop install Python;
Then %Foo% will be directly expanded to Bar in "Path".
Expected Behavior
%Foo% should not be expanded after Scoop's modification of "Path"
Additional context
Usually environment variable string expansion will not affect anything, especially %USERPROFILE%\AppData\Local\Microsoft\WindowsApps is often modified by Scoop.
But there are too many items in my "Path" environment variable, and I have a problem with "PATH too long installer unable to modify Path".
So I want to use the %% method to nest another custom environment variable to reduce the length of "Path".
Bug Report
The environment variable of "Path" is automatically expanded due to the modification of the environment variable by Scoop.
Current Behavior
Foo=Bar
;%Foo%
to the user's "Path" environment variable;Bar
can be obtained in the user's "Path" by%Foo%
;scoop install Python
;%Foo%
will be directly expanded toBar
in "Path".Expected Behavior
%Foo%
should not be expanded after Scoop's modification of "Path"Additional context
Usually environment variable string expansion will not affect anything, especially
%USERPROFILE%\AppData\Local\Microsoft\WindowsApps
is often modified by Scoop.But there are too many items in my "Path" environment variable, and I have a problem with "PATH too long installer unable to modify Path".
So I want to use the
%%
method to nest another custom environment variable to reduce the length of "Path".Possible Solution
Try the method without expanding the environment variable.(e.g. PowerShell/PowerShell#17518)
System details
Scoop Configuration
The text was updated successfully, but these errors were encountered: