mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
change -l to explicitly load user profile
This commit is contained in:
@@ -745,7 +745,7 @@ namespace Microsoft.PowerShell
|
||||
}
|
||||
else if (MatchSwitch(switchKey, "loadprofile", "l"))
|
||||
{
|
||||
// do nothing as we load profile by default, but this is needed to be compatible with POSIX shell expectations
|
||||
_skipUserInit = false;
|
||||
}
|
||||
else if (MatchSwitch(switchKey, "noprofile", "nop"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user