Assaf Gordon
07f811a3c0
seq: fix superfluous output line
...
Under certain circumstances seq prints an extra line when the output
format has custom format with characters following the printed numbers:
$ seq -f "%g " 1000000 1000000
1e+06
1e+06
This is due to the "print_extra_number" logic using strings to determine
whether a 'extra number' is needed, but only one string was trimmed
when using a custom printf format.
Prompted by https://lists.gnu.org/r/coreutils/2019-08/msg00001.html
* NEWS: Mention fix.
* src/seq.c (print_numbers): Trim the 'x0_str' string before comparing
it to the previous 'x_str' string.
* tests/misc/seq-extra-number.sh: Add this scenario.
* tests/local.mk (all_tests): Add new test.
2019-08-02 18:29:25 -06:00
..
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-02-11 22:56:21 -08:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-06-12 21:14:34 -06:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-02-24 23:59:55 -08:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-03-04 00:37:42 -08:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-02-24 19:32:29 +01:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-02-11 22:56:21 -08:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-20 12:53:24 -08:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-20 12:53:24 -08:00
2019-08-02 18:29:25 -06:00
2019-01-01 16:51:48 -07:00
2019-02-03 17:18:08 -08:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-30 17:49:05 -08:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-02-17 19:17:17 -08:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-02-10 20:32:59 -08:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-03-06 22:00:53 -08:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-03-10 15:05:26 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-03-09 20:59:21 -08:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00
2019-01-01 16:51:48 -07:00