summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2007-05-22 14:25:19 +0200
committerJim Meyering <jim@meyering.net>2007-05-22 18:47:17 +0200
commita6a447fc58a01598682f0914f978d0a3c1cfc4dc (patch)
tree381e6cc2fecc1d4244daf27a8d2a67eccaf7c0df /NEWS
parentae5717158f1b9f31b986b0f4416582684039ec55 (diff)
downloadcoreutils-a6a447fc58a01598682f0914f978d0a3c1cfc4dc.tar.xz
cut: diagnose a range starting with 0 (-f 0-2) as invalid, and
give a better diagnostic for a field-number/offset of 0. * NEWS: Mention the fix. * src/cut.c (ADD_RANGE_PAIR): Add an explicit check for 0. Based on a patch from James Youngman. * tests/misc/cut: Add tests for the above.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index 03266813d..ea08e0a92 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,9 @@ GNU coreutils NEWS -*- outline -*-
** Bug fixes
+ cut now diagnoses a range starting with zero (e.g., -f 0-2) as invalid;
+ before, it would treat it as if it started with 1 (-f 1-2).
+
"cut -f 2-0" now fails; before, it was equivalent to "cut -f 2-"
cut now diagnoses the '-' in "cut -f -" as an invalid range, rather