summaryrefslogtreecommitdiff
path: root/tests/pr/Makefile.am
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-03-15 18:09:05 +0000
committerJim Meyering <jim@meyering.net>2005-03-15 18:09:05 +0000
commitfd304f1e0e121f7ff61fd2dc578b92e63ea4ccc5 (patch)
tree0957f364525d749fdb78173503b19506c0eed053 /tests/pr/Makefile.am
parent6d9f816b5c21fc8ae9574db21e517a5a3785e41c (diff)
downloadcoreutils-fd304f1e0e121f7ff61fd2dc578b92e63ea4ccc5.tar.xz
Both `pr -0' and e.g., `pr -03' would evoke `column count too large'.
`pr -0' should give a better diagnostic and `pr -03' should be equivalent to `pr -3'. (parse_column_count): Change return type to void. Call error (EXIT_FAILURE, ... for an invalid string. (main): Allocate space for column_count_string using malloc. Accumulate all old-style column-count digits before converting. When the number of columns is specified via both old-style, (e.g., -3), and a long option (--columns=5), ensure that only the last one specified takes effect. Add tests for the above.
Diffstat (limited to 'tests/pr/Makefile.am')
0 files changed, 0 insertions, 0 deletions