Pass full shell path (IDEA-161309)

This commit is contained in:
Dmitry Trofimov
2016-09-28 17:59:01 +02:00
parent 43cc6f5519
commit d5f4165283
@@ -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);