String () { String shell = System.getenv("SHELL"); if (shell != null && new File(shell).canExecute()) { return shell; } if (SystemInfo.isUnix) { String bashPath = "/bin/bash"; if (new File(bashPath).exists()) { return bashPath; } return "/bin/sh"; } return "powershell.exe"; }