I’m calling julia from the command line in a cygwin shell and ran into the following problem…
julia argtest.jl -f '\\foo\bar\this baz.txt' argtest ["-f", "\\\\foo\\bar\\this", "baz.txt"] too many arguments
you can see that julia is breaking up the second argument at the space.
(edit: i’m simply printing ARGS
however if i write a quick bash script:
#!/bin/bash printf "\"%s\"\n" "$1"
I get the expected result
$ . argtest.sh '\\foo\bar\this\ baz.txt' "\\foo\bar\this\ baz.txt"
I also created a C program and it does the right thing, i.e. it sees the argument as a single argument.
So I’m unsure where to go from here. Julia-under-windows thing ? In this particular case i can simply make sure that the file name is the last argument accumulate all the strings and join them with a space.
Just wondering if this is a true julia issue or i’m doing something silly.