String () { if (myRunConfiguration.isExecuteScriptFile()) { final WSLDistribution wslDistribution = ShRunConfiguration.getWSLDistributionIfNeeded(myRunConfiguration.getInterpreterPath(), myRunConfiguration.getScriptPath()); final List<String> commandLine = new ArrayList<>(); addIfPresent(commandLine, myRunConfiguration.getEnvData().getEnvs()); addIfPresent(commandLine, adaptPathForExecution(myRunConfiguration.getInterpreterPath(), wslDistribution)); addIfPresent(commandLine, myRunConfiguration.getInterpreterOptions()); commandLine.add(adaptPathForExecution(myRunConfiguration.getScriptPath(), wslDistribution)); addIfPresent(commandLine, myRunConfiguration.getScriptOptions()); return String.join(" ", commandLine); } else { List<String> commandLine = new ArrayList<>(); addIfPresent(commandLine, myRunConfiguration.getEnvData().getEnvs(), true); addIfPresent(commandLine, myRunConfiguration.getScriptText()); return String.join(" ", commandLine); } }