GNU bug report logs - #15650
"cp: warning: source file ‘f’ specified more than once" said more than once too!

Previous Next

Package: coreutils;

Reported by: jidanni <at> jidanni.org

Date: Sat, 19 Oct 2013 10:30:02 UTC

Severity: normal

Done: Pádraig Brady <P <at> draigBrady.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 15650 in the body.
You can then email your comments to 15650 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-coreutils <at> gnu.org:
bug#15650; Package coreutils. (Sat, 19 Oct 2013 10:30:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to jidanni <at> jidanni.org:
New bug report received and forwarded. Copy sent to bug-coreutils <at> gnu.org. (Sat, 19 Oct 2013 10:30:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: jidanni <at> jidanni.org
To: bug-coreutils <at> gnu.org
Subject: "cp: warning: source file ‘f’ specified more
 than once" said more than once too!
Date: Sat, 19 Oct 2013 18:28:55 +0800
$ touch f
$ mkdir w
$ cp f f f w
cp: warning: source file ‘f’ specified more than once
cp: warning: source file ‘f’ specified more than once

Hey, you yourself say that more than once itself!

So either say
cp: warning: source file ‘f’ specified more than once
just once, or say
cp: warning: source file ‘f’ specified again
n-1 times.




Reply sent to Pádraig Brady <P <at> draigBrady.com>:
You have taken responsibility. (Wed, 30 Oct 2013 10:55:04 GMT) Full text and rfc822 format available.

Notification sent to jidanni <at> jidanni.org:
bug acknowledged by developer. (Wed, 30 Oct 2013 10:55:08 GMT) Full text and rfc822 format available.

Message #10 received at 15650-done <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: jidanni <at> jidanni.org
Cc: 15650-done <at> debbugs.gnu.org
Subject: Re: bug#15650: "cp: warning: source file ‘f’ specified more than once" said more than once too!
Date: Wed, 30 Oct 2013 10:53:58 +0000
tag 15659 wontfix
stop

On 10/19/2013 11:28 AM, jidanni <at> jidanni.org wrote:
> $ touch f
> $ mkdir w
> $ cp f f f w
> cp: warning: source file ‘f’ specified more than once
> cp: warning: source file ‘f’ specified more than once
> 
> Hey, you yourself say that more than once itself!
> 
> So either say
> cp: warning: source file ‘f’ specified more than once
> just once, or say
> cp: warning: source file ‘f’ specified again
> n-1 times.

So we record this about each arg:

struct F_triple
{
  char *name;
  ino_t st_ino;
  dev_t st_dev;
};

I suppose we could add a 'count' member,
and a corresponding seen_file_count() function.

Though I don't think the complication/clarification
is warranted in this case.

thanks,
Pádraig.




Information forwarded to bug-coreutils <at> gnu.org:
bug#15650; Package coreutils. (Wed, 30 Oct 2013 14:48:01 GMT) Full text and rfc822 format available.

Message #13 received at 15650 <at> debbugs.gnu.org (full text, mbox):

From: Jim Meyering <jim <at> meyering.net>
To: 15650 <at> debbugs.gnu.org, Pádraig Brady <P <at> draigbrady.com>,
 Dan Jacobson <jidanni <at> jidanni.org>
Subject: Re: bug#15650: "cp: warning: source file ‘f’ specified more than once" said more than once too!
Date: Wed, 30 Oct 2013 07:20:45 -0700
On Wed, Oct 30, 2013 at 3:53 AM, Pádraig Brady <P <at> draigbrady.com> wrote:
> Though I don't think the complication/clarification
> is warranted in this case.

Glad we agree.  THanks for replying.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Thu, 28 Nov 2013 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 11 years and 208 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.