List<String> () { String shellScript = getShell(); if (shellScript == null || shellScript.isEmpty()) { throw new RuntimeException("empty $SHELL"); } if (!Files.isExecutable(Paths.get(shellScript))) { throw new RuntimeException("$SHELL points to a missing or non-executable file: " + shellScript); } return buildShellProcessCommand(shellScript, true, true, false); }