diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/CommandLineParameterParser.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/CommandLineParameterParser.cs index bd08b0e3c7..eb46b6a7e6 100644 --- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/CommandLineParameterParser.cs +++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/CommandLineParameterParser.cs @@ -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")) {