From 2d8a15af28fddab06334f2f9728d92c8fc82d506 Mon Sep 17 00:00:00 2001 From: Steve Lee Date: Fri, 3 May 2019 14:13:41 -0700 Subject: [PATCH] change -l to explicitly load user profile --- .../host/msh/CommandLineParameterParser.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")) {