From ba9f7c418aae74bd439034da64ec4c242bfb6470 Mon Sep 17 00:00:00 2001 From: Sergey Simonchik Date: Wed, 25 Jan 2017 14:22:09 +0300 Subject: [PATCH] util: omit -l for csh as -l should be the only flag specified to run login shell (IDEA-CR-17716) --- platform/util/src/com/intellij/util/EnvironmentUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/util/src/com/intellij/util/EnvironmentUtil.java b/platform/util/src/com/intellij/util/EnvironmentUtil.java index 079832d33f68..0c570ead7c67 100644 --- a/platform/util/src/com/intellij/util/EnvironmentUtil.java +++ b/platform/util/src/com/intellij/util/EnvironmentUtil.java @@ -218,7 +218,7 @@ public class EnvironmentUtil { throw new Exception("shell:" + shell); } List commands = ContainerUtil.newArrayList(shell); - if (!shell.endsWith("/tcsh")) { + if (!shell.endsWith("/tcsh") && !shell.endsWith("/csh")) { // Act as a login shell // tsch does allow to use -l with any other options commands.add("-l");