bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

diffutils-2.8.4 has broken tabsize option


From: Matthew Harris
Subject: diffutils-2.8.4 has broken tabsize option
Date: Thu, 11 Mar 2004 13:12:47 -0500 (EST)

[Originally sent yesterday, but resending because it didn't appear in the 
archive]

In GNU diffutils-2.8.4 (*), there is a documented --tabsize option that is
supposed to take an argument.  But at diff.c:237, tabsize is defined in
the longopts array *not* to take an argument.  Easy fix: change the
initial 0 to a 1.

Example output (on a current version of Cygwin):

$ diff --version
diff (GNU diffutils) 2.8.4
Copyright (C) 2002 Free Software Foundation, Inc.

This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of this program
under the terms of the GNU General Public License.
For more information about these matters, see the files named COPYING.

Written by Paul Eggert, Mike Haertel, David Hayes,
Richard Stallman, and Len Tower.

$ diff --tabsize=4
diff: option `--tabsize' doesn't allow an argument
diff: Try `diff --help' for more information.



(*) I obtained the source from
<ftp://ftp.debian.org/debian/pool/main/d/diff/diff_2.8.4.orig.tar.gz>,
since I didn't see this version in
<http://ftp.gnu.org/pub/gnu/diffutils/>.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]