Thank you for suggestion of using pipeline
function to escape >>
.
However, problem persists if trying to use .
or *
in main command, e.g: attrib –r folder*.* /s
Having done some research:
-
- As per Can't run local command on Windows - #4 by pfack, have also tried:
run(`powershell -Command "<command>"`)
, for error again.
- As per Can't run local command on Windows - #4 by pfack, have also tried:
-
- Seems like if special chars are arguments of command, Julia’s inbuilt escaping will take care of issue. E.g: inbuilt
shell_escape
function.
But if is part of main command (first parameter), escaping is not possible.
- Seems like if special chars are arguments of command, Julia’s inbuilt escaping will take care of issue. E.g: inbuilt
-
- So even if wrapping
.
and*
in quotation marks to snooze Julia REPL error, Windows PowerShell will complain about received input.
- So even if wrapping