--- Begin Message ---
Subject: |
diff --help and multiple files |
Date: |
Wed, 26 Mar 2014 17:13:45 +0000 |
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
Description: This is a digitally signed message part
--- End Message ---
--- Begin Message ---
Subject: |
Re: [bug-diffutils] bug#17102: diff --help and multiple files |
Date: |
Wed, 26 Mar 2014 11:14:58 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
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
Description: Text document
--- End Message ---