Bernhard Voelker
1482f730b4
cut: do not accept the invalid range 0-
...
The command "echo 12345 | cut -b 0-" prints an empty line while
it should fail with "fields and positions are numbered from 1".
* src/cut.c (set_fields): Add a diagnostic for the invalid open
range which starts with Zero, i.e., the range 0-.
* tests/misc/cut.pl: Add tests to ensure the range 0- fails for
fields (-f) and for positions (-b, -c).
* NEWS: Mention the fix.
Reported by Marcel Böhme in <http://bugs.gnu.org/12903 >.
2012-11-19 00:08:38 +01:00
..
2012-09-05 08:48:29 +02:00
2012-08-30 18:55:59 +02:00
2012-08-30 18:55:59 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-08-30 18:55:59 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-11-19 00:08:38 +01:00
2012-08-30 18:55:59 +02:00
2012-09-05 08:48:29 +02:00
2012-08-30 18:55:59 +02:00
2012-08-30 18:55:59 +02:00
2012-08-30 18:55:59 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-08-30 18:55:59 +02:00
2012-08-30 18:55:59 +02:00
2012-10-23 13:03:08 +01:00
2012-09-05 08:48:29 +02:00
2012-08-30 18:55:59 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-08-30 18:55:59 +02:00
2012-09-05 08:48:29 +02:00
2012-08-30 18:55:59 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-08-30 18:55:59 +02:00
2012-08-30 18:55:59 +02:00
2012-09-16 11:41:50 +01:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-08-30 18:55:59 +02:00
2012-09-05 08:48:29 +02:00
2012-08-30 18:55:59 +02:00
2012-09-05 08:48:29 +02:00
2012-08-30 18:55:59 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-08-30 18:55:59 +02:00
2012-08-30 18:55:59 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-08-30 18:55:59 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-08-30 18:55:59 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-14 13:34:51 +02:00
2012-08-30 18:55:59 +02:00
2012-08-30 18:55:59 +02:00
2012-08-30 18:55:59 +02:00
2012-08-30 18:55:59 +02:00
2012-08-30 18:55:59 +02:00
2012-08-30 18:55:59 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-08-30 18:55:59 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-08-30 18:55:59 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-08-30 18:55:59 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-08-30 18:55:59 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-08-30 18:55:59 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-08-30 18:55:59 +02:00
2012-08-30 18:55:59 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-08-30 18:55:59 +02:00
2012-08-30 18:55:59 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-11-04 01:48:14 +00:00
2012-09-05 08:48:29 +02:00
2012-08-30 18:55:59 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-08-30 18:55:59 +02:00
2012-08-30 18:55:59 +02:00
2012-08-30 18:55:59 +02:00
2012-09-05 08:48:29 +02:00
2012-08-30 18:55:59 +02:00
2012-08-30 18:55:59 +02:00
2012-09-05 08:48:29 +02:00
2012-09-05 08:48:29 +02:00
2012-08-30 18:55:59 +02:00
2012-09-05 08:48:29 +02:00
2012-08-30 18:55:59 +02:00