Skip to content

Commit

Permalink
fix incorrect escaping
Browse files Browse the repository at this point in the history
  • Loading branch information
turbanoff committed Jun 6, 2017
1 parent 5101d5d commit cb3e75e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/org/turbanov/execution/cmd/InCmdRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ protected RunContentDescriptor doExecute(@NotNull RunProfileState runProfileStat
GeneralCommandLine generalCommandLine = CommandLineBuilder.createFromJavaParameters(javaParameters, environment.getProject(), false);
String original = generalCommandLine.getCommandLineString();
String newCommandLine = original
.replace("^", "^^") //replace ^ first
.replace("&", "^&")
.replace("<", "^<")
.replace(">", "^>")
.replace("(", "^(")
.replace(")", "^)")
.replace("@", "^@")
.replace("^", "^^")
.replace("|", "^|");

if (options.isRunInsideTerminal && isTerminalPluginEnabled()) {
Expand Down

0 comments on commit cb3e75e

Please sign in to comment.