change -l to explicitly load user profile

This commit is contained in:
Steve Lee 2019-05-03 14:13:41 -07:00
parent f2888e9eb6
commit 2d8a15af28

View file

@ -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"))
{