bug-fileutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: -a != -dpR


From: Jim Meyering
Subject: Re: -a != -dpR
Date: Sat, 19 Jan 2002 22:25:59 +0100
User-agent: Gnus/5.090004 (Oort Gnus v0.04) Emacs/21.2.50 (i686-pc-linux-gnu)

Jeroen Vriesman <address@hidden> wrote:
> When cp -i -arv /xxxx /yyyy
> copy hangs on a FIFO
> if I use cp -i -dpRv /xxxx /yyyy
> it works, so in this case -a is not -dpR (as stated in the man page) but -a
> is -dpr.
...
> cp (GNU fileutils) 4.0

Thanks for the report.

The problem is that you're using -a and -r, but -r conflicts with
(and hence overrides) the -R implicit in -a (-a == -dpR).
So your command that hangs is equivalent to `cp -i -dprv ...',
and since `-r' says to read special files, you've told cp to read
the FIFO and it hangs, as expected.

If you had put the -r *before* the -a, then the -r would have been
ignored -- because it would have been overridden by -a's -R.
Best is just not to use -r with -a.
I may change cp to give a warning when those two options are used.

> This only happens when the -v option is also given.

It is supposed to be independent of -v.
If you can show that -v changes how it works, then please
give details.

You might want to get a newer release:
  ftp://alpha.gnu.org/gnu/fetish/fileutils-4.1.4.tar.gz



reply via email to

[Prev in Thread] Current Thread [Next in Thread]