Prof Brian Ripley <[EMAIL PROTECTED]> writes: > On Wed, 28 Apr 2004, Kurt Hornik wrote: > > > >>>>> Prof Brian Ripley writes: > > > > > Note that it *does* work under Windows (via mapping names to short > > > names without spaces), so we should take care not to break that (and I > > > think adding quotes will as the shell quoting rules appear to be are > > > different). > > > > I thought that R_system() would portably invoke a Bourne shell? > > No, it is ash on Windows, which is not quite Bourne.
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? -- O__ ---- Peter Dalgaard Blegdamsvej 3 c/ /'_ --- Dept. of Biostatistics 2200 Cph. N (*) \(*) -- University of Copenhagen Denmark Ph: (+45) 35327918 ~~~~~~~~~~ - ([EMAIL PROTECTED]) FAX: (+45) 35327907 ______________________________________________ [EMAIL PROTECTED] mailing list https://www.stat.math.ethz.ch/mailman/listinfo/r-devel