Re: Bug, or me being stupid?

Richard Dawe <[email protected]>
Newsgroups gmane.comp.gnu.fileutils.bugs
Message-ID <[email protected]>
Hello.

Andrew Walrond wrote:
> I want to copy a dir, preserving modes and timestamps but assuming
> ownership, and I keep getting this error:
> 
> daedalus@bob daedalus $ cp -r --preserve=mode,timestamps fly fly2
> cp: ambiguous argument `' for `--preserve'
> Valid arguments are:
>    - `mode'
>    - `timestamps'
>    - `ownership'
>    - `links'
>    - `all'
> Try `cp --help' for more information.
> 
> Am I being stupid, or is this a bug? I'm using coreutils-4.5.3.

It looks like it's been fixed in coreutils 4.5.4. From ChangeLog:

2002-12-11  TAKAI Kousuke  <[email protected]>

        Fix a bug whereby cp would fail to parse an option like
        --preserve=mode,ownership.
        * src/cp.c (decode_preserve_arg): Advance `comma' to
        point the character following the comma.

coreutils 4.5.5 is out now.

Regards,

-- 
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.