Skip to content
Prev 12532 / 63461 Next

(PR#6830) Re: [Rd] 'R CMD build' fails when there are spaces in the path (PR#6830)

Prof Brian Ripley <ripley@stats.ox.ac.uk> writes:
Well, at least it isn't CMD.EXE. Enclosing things in double quotes
does seem to work with ash (at least what RedHat calls ash):

$ X="abc def"
$ cat > "$X"
bla bla
$ cat $X
cat: abc: No such file or directory
cat: def: No such file or directory
$ cat "$X"
bla bla

BTW, I had the displeasure of having to use the ash command line
recently (teaching compiling and package building on a system where
the control freaks^W^Wsystem administrators had disabled CMD.EXE). Is
there a better way?