aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/cut
diff options
context:
space:
mode:
authorTim J. Robbins <tjr@FreeBSD.org>2004-06-27 15:27:15 +0000
committerTim J. Robbins <tjr@FreeBSD.org>2004-06-27 15:27:15 +0000
commit0dcb7b75a3b81c1d1fc24e94203a9238bdd7c586 (patch)
treef4b08af10de886c16baa33ec4e9c59f4acf95b01 /usr.bin/cut
parentf91650cf2d479aa4fc540569f18f4b58318d0248 (diff)
downloadsrc-0dcb7b75a3b81c1d1fc24e94203a9238bdd7c586.tar.gz
src-0dcb7b75a3b81c1d1fc24e94203a9238bdd7c586.zip
Update a comment that compared the parser with an obsolete draft of
IEEE Std 1003.2-1992. Most of the "extensions" here were actually required by the final version of the standard.
Notes
Notes: svn path=/head/; revision=131196
Diffstat (limited to 'usr.bin/cut')
-rw-r--r--usr.bin/cut/cut.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/usr.bin/cut/cut.c b/usr.bin/cut/cut.c
index eeeb17e57116..9d7cb50675b7 100644
--- a/usr.bin/cut/cut.c
+++ b/usr.bin/cut/cut.c
@@ -161,10 +161,8 @@ get_list(char *list)
/*
* set a byte in the positions array to indicate if a field or
* column is to be selected; use +1, it's 1-based, not 0-based.
- * This parser is less restrictive than the Draft 9 POSIX spec.
- * POSIX doesn't allow lists that aren't in increasing order or
- * overlapping lists. We also handle "-3-5" although there's no
- * real reason too.
+ * Numbers and number ranges may be overlapping, repeated, and in
+ * any order. We handle "-3-5" although there's no real reason too.
*/
for (; (p = strsep(&list, ", \t")) != NULL;) {
setautostart = start = stop = 0;