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/ ] _______________________________________________ Bug-fileutils mailing list [EMAIL PROTECTED] http://mail.gnu.org/mailman/listinfo/bug-fileutils