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.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#17102: closed (diff --help and multiple files)
Date: Wed, 26 Mar 2014 18:16:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 26 Mar 2014 11:14:58 -0700
with message-id <53331922.1080200 <at> cs.ucla.edu>
and subject line Re: [bug-diffutils] bug#17102: diff --help and multiple files
has caused the debbugs.gnu.org bug report #17102,
regarding diff --help and multiple files
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
17102: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=17102
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
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 3 (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)]
[Message part 5 (message/rfc822, inline)]
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 6 (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)]

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.