JSON3: Error During Test at C:\Users\jru\.julia\packages\JSON3\A0XBc\test\json.jl:733
Test threw exception
Expression: (JSON3.read(`echo \{\"i\":1\}`)).i == 1
IOError: could not spawn `echo '{"i":1}'`: no such file or directory (ENOENT)
...
JSON3: Error During Test at C:\Users\jru\.julia\packages\JSON3\A0XBc\test\json.jl:734
Test threw exception
Expression: (JSON3.read(`echo` & `echo \{\"i\":1\}`)).i == 1
IOError: could not spawn `echo`: no such file or directory (ENOENT)
On Windows echo is an internal command.
julia> run(`echo foo`)
ERROR: IOError: could not spawn `echo foo`: no such file or directory (ENOENT)
Stacktrace:
...
One could define the commands like
run(`cmd /c echo foo`)
but I could not figure out how to escape the double quotes in the string to print {"i": 1}.
Julia 1.6.1, JSON3 1.8.1
On Windows
echo
is an internal command.One could define the commands like
but I could not figure out how to escape the double quotes in the string to print
{"i": 1}
.