Keith Thompson <[EMAIL PROTECTED]> wrote:
> The "--verbose" option to the "split" command doesn't work (where by
> "doesn't work", I mean that specifying the option has no effect on the
> command's output).
>
> The problem seems to have been introduced in coreutils-4.5.10.  I see
> the problem in releases 4.5.10 and 5.0; it works correctly in 4.5.9.

Thank you for reporting that!
and for tracking down when it was introduced.

Here's a patch:

        split's --verbose option did nothing
        * src/split.c (longopts): Use `1', not `0' as the value for
        for &verbose.  Reported by Keith Thompson.

Index: src/split.c
===================================================================
RCS file: /fetish/cu/src/split.c,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -p -u -r1.88 -r1.89
--- src/split.c 17 Jun 2003 18:13:24 -0000      1.88
+++ src/split.c 27 Jun 2003 07:41:55 -0000      1.89
@@ -80,7 +80,7 @@ static struct option const longopts[] =
   {"lines", required_argument, NULL, 'l'},
   {"line-bytes", required_argument, NULL, 'C'},
   {"suffix-length", required_argument, NULL, 'a'},
-  {"verbose", no_argument, &verbose, 0},
+  {"verbose", no_argument, &verbose, 1},
   {GETOPT_HELP_OPTION_DECL},
   {GETOPT_VERSION_OPTION_DECL},
   {NULL, 0, NULL, 0}


_______________________________________________
Bug-coreutils mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-coreutils

Reply via email to