Message-ID: <x2u0z4b523.fsf@biostat.ku.dk>
Date: 2004-04-28T15:37:23Z
From: Peter Dalgaard
Subject: (PR#6830) Re: [Rd] 'R CMD build' fails when there are spaces in the path (PR#6830)
In-Reply-To: <Pine.LNX.4.44.0404281417550.25610-100000@gannet.stats>
Prof Brian Ripley <ripley@stats.ox.ac.uk> 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
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk) FAX: (+45) 35327907