Subject: bug#17102: diff --help and multiple files

From: Tim Waugh <[email-masked]>
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.
*/