summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-01-08 12:01:40 +0000
committerJim Meyering <jim@meyering.net>2005-01-08 12:01:40 +0000
commit91fefc7f0d0c9be388b8f59eb86f1b41c0988935 (patch)
treeb6c9c6521f2a87ebc70b9f47126df5bbbb5d0e02 /src
parentaa7f16bda693932de34b4a45fb5d00dad60a818b (diff)
downloadcoreutils-91fefc7f0d0c9be388b8f59eb86f1b41c0988935.tar.xz
`pr --columns=N' was not equivalent to `pr -N' when also using
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.
Diffstat (limited to 'src')
-rw-r--r--src/pr.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pr.c b/src/pr.c
index cae343898..ab86114ca 100644
--- 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;
}