Pass full shell path (IDEA-161309)
authorDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Wed, 28 Sep 2016 15:59:01 +0000 (17:59 +0200)
committerDmitry Trofimov <dmitry.trofimov@jetbrains.com>
Wed, 28 Sep 2016 15:59:01 +0000 (17:59 +0200)
plugins/terminal/src/org/jetbrains/plugins/terminal/LocalTerminalDirectRunner.java

index f96e3468aa98c288cfa9f9b356ec9d95670a2a68..a4c6f5846b1e8da41ed92029469a55c7d8fb0d23 100644 (file)
@@ -164,13 +164,14 @@ public class LocalTerminalDirectRunner extends AbstractTerminalRunner<PtyProcess
     if (SystemInfo.isUnix) {
       List<String> command = Lists.newArrayList(shellPath.split(" "));
 
-      String shellName = command.size() > 0 ? getShellName(command.get(0)) : null;
+      String shellCommand = command.get(0);
+      String shellName = command.size() > 0 ? getShellName(shellCommand) : null;
 
 
       if (shellName != null) {
         command.remove(0);
 
-        List<String> result = Lists.newArrayList(shellName);
+        List<String> result = Lists.newArrayList(shellCommand);
 
         String rcFilePath = findRCFile(shellName);