GNU bug report logs - #17102
diff --help and multiple files

Previous Next

Package: diffutils;

Reported by: Tim Waugh <twaugh <at> redhat.com>

Date: Wed, 26 Mar 2014 17:54:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

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 17102 in the body.
You can then email your comments to 17102 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-diffutils <at> gnu.org:
bug#17102; Package diffutils. (Wed, 26 Mar 2014 17:54:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Tim Waugh <twaugh <at> redhat.com>:
New bug report received and forwarded. Copy sent to bug-diffutils <at> gnu.org. (Wed, 26 Mar 2014 17:54:03 GMT) Full text and rfc822 format available.

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

From: Tim Waugh <twaugh <at> redhat.com>
To: bug-diffutils <at> gnu.org
Subject: diff --help and multiple files
Date: Wed, 26 Mar 2014 17:13:45 +0000
[Message part 1 (text/plain, inline)]
Hi,

I'm trying to understand the --help output from diff:

diff [OPTION]... FILES
[...]
FILES are 'FILE1 FILE2' or 'DIR1 DIR2' or 'DIR FILE...' or 'FILE... DIR'.
[...]

I'm not sure how to trigger the "FILE..." behaviour. It doesn't seem to work for me:

touch a b
mkdir -p dir
echo "A" > dir/a
echo "B" > dir/b
diff a b dir/

gives:

diff: extra operand 'dir/'
diff: Try 'diff --help' for more information.

The original bug report is here:
  https://bugzilla.redhat.com/show_bug.cgi?id=1079076

Thanks,
Tim.
*/

[signature.asc (application/pgp-signature, inline)]

Reply sent to Paul Eggert <eggert <at> cs.ucla.edu>:
You have taken responsibility. (Wed, 26 Mar 2014 18:16:01 GMT) Full text and rfc822 format available.

Notification sent to Tim Waugh <twaugh <at> redhat.com>:
bug acknowledged by developer. (Wed, 26 Mar 2014 18:16:02 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Tim Waugh <twaugh <at> redhat.com>, 17102-done <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#17102: diff --help and multiple files
Date: Wed, 26 Mar 2014 11:14:58 -0700
[Message part 1 (text/plain, inline)]
Tim Waugh wrote:
> I'm not sure how to trigger the "FILE..." behaviour.

Thanks, that's a typo in the --help output.  It's been there since 
commit 9a57dd54d693952dc3f63ed8baaf99f2fb695132 dated 1998, and you're 
the first to report it!  I installed the attached patch.

It would be nice to extend 'diff' in the ways that you're probably 
thinking of, and that's been proposed, but it hasn't been implemented as 
far as I know.  Should be done for 'cmp' too.
[0001-diff-fix-two-.-typos-in-help-output.patch (text/plain, attachment)]

Information forwarded to bug-diffutils <at> gnu.org:
bug#17102; Package diffutils. (Fri, 28 Mar 2014 10:20:01 GMT) Full text and rfc822 format available.

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

From: Tim Waugh <twaugh <at> redhat.com>
To: 17102 <at> debbugs.gnu.org
Subject: Re: bug#17102: closed (Re: [bug-diffutils] bug#17102: diff --help
 and multiple files)
Date: Fri, 28 Mar 2014 10:19:42 +0000
[Message part 1 (text/plain, inline)]
Thanks.

I think the man page also says "DIR FILE..." and "FILE... DIR" as well.

Tim.
*/

[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-diffutils <at> gnu.org:
bug#17102; Package diffutils. (Fri, 28 Mar 2014 19:23:01 GMT) Full text and rfc822 format available.

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

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Tim Waugh <twaugh <at> redhat.com>, 17102 <at> debbugs.gnu.org
Subject: Re: [bug-diffutils] bug#17102: closed (Re: bug#17102: diff --help
 and multiple files)
Date: Fri, 28 Mar 2014 12:22:05 -0700
On 03/28/2014 03:19 AM, Tim Waugh wrote:
> I think the man page
It's generated automatically from "diff --help", so it should be OK.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 26 Apr 2014 11:24:03 GMT) Full text and rfc822 format available.

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

Previous Next


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