util: omit -l for csh as -l should be the only flag specified to run login shell (IDEA-CR-17716)

This commit is contained in:
Sergey Simonchik
2017-01-25 14:22:48 +03:00
parent 6d23ea067b
commit ba9f7c418a
@@ -218,7 +218,7 @@ public class EnvironmentUtil {
throw new Exception("shell:" + shell);
}
List<String> 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");