summaryrefslogtreecommitdiffstats
path: root/usr.bin/cut/cut.c
diff options
context:
space:
mode:
authorkevlo <kevlo@FreeBSD.org>2012-06-11 03:02:40 +0000
committerkevlo <kevlo@FreeBSD.org>2012-06-11 03:02:40 +0000
commit2c79397387cdefb7e219a3c271764a75fe36631d (patch)
tree975b9dc72fccdb917db00c4a3c7b76a281e3c072 /usr.bin/cut/cut.c
parent352ba3f296a83577cf0ac22ec5a8489a433ec1ae (diff)
downloadFreeBSD-src-2c79397387cdefb7e219a3c271764a75fe36631d.zip
FreeBSD-src-2c79397387cdefb7e219a3c271764a75fe36631d.tar.gz
- Consistenly mention columns and fields
- Add -b to short error messages Obtained from: NetBSD
Diffstat (limited to 'usr.bin/cut/cut.c')
-rw-r--r--usr.bin/cut/cut.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/cut/cut.c b/usr.bin/cut/cut.c
index d32d4ab..0a3a2a9 100644
--- a/usr.bin/cut/cut.c
+++ b/usr.bin/cut/cut.c
@@ -164,7 +164,7 @@ 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.
* Numbers and number ranges may be overlapping, repeated, and in
- * any order. We handle "-3-5" although there's no real reason too.
+ * any order. We handle "-3-5" although there's no real reason to.
*/
for (; (p = strsep(&list, ", \t")) != NULL;) {
setautostart = start = stop = 0;
@@ -187,9 +187,9 @@ get_list(char *list)
}
}
if (*p)
- errx(1, "[-cf] list: illegal list value");
+ errx(1, "[-bcf] list: illegal list value");
if (!stop || !start)
- errx(1, "[-cf] list: values may not include zero");
+ errx(1, "[-bcf] list: values may not include zero");
if (maxval < stop) {
maxval = stop;
needpos(maxval + 1);
OpenPOWER on IntegriCloud