]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
`pr --columns=N' was not equivalent to `pr -N' when also using
authorJim Meyering <jim@meyering.net>
Sat, 8 Jan 2005 12:01:40 +0000 (12:01 +0000)
committerJim Meyering <jim@meyering.net>
Sat, 8 Jan 2005 12:01:40 +0000 (12:01 +0000)
either -s or -w.

(main): Set `explicit_columns' for --columns=N,
not just for -N.  This bug has existed since the introduction
of the --columns=N option on 1998-08-15.

src/pr.c

index cae3438980cf2aac8f3529b420d8734a96d6494e..ab86114ca857b94f1e5d2fc1b302b4b0c09dd58b 100644 (file)
--- a/src/pr.c
+++ b/src/pr.c
@@ -916,6 +916,7 @@ main (int argc, char **argv)
                       optarg);
              }
            columns = tmp_long;
+           explicit_columns = true;
            break;
          }