Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/cut Add -b to short error messages. Fix typo. From B...
details: https://anonhg.NetBSD.org/src/rev/73649d6c380d
branches: trunk
changeset: 779669:73649d6c380d
user: wiz <wiz%NetBSD.org@localhost>
date: Sat Jun 09 19:22:47 2012 +0000
description:
Add -b to short error messages. Fix typo. From Bug Hunting in PR 44747.
diffstat:
usr.bin/cut/cut.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (39 lines):
diff -r 7105db1ef1f7 -r 73649d6c380d usr.bin/cut/cut.c
--- a/usr.bin/cut/cut.c Sat Jun 09 15:48:38 2012 +0000
+++ b/usr.bin/cut/cut.c Sat Jun 09 19:22:47 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cut.c,v 1.26 2012/04/06 11:34:58 wiz Exp $ */
+/* $NetBSD: cut.c,v 1.27 2012/06/09 19:22:47 wiz Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)cut.c 8.3 (Berkeley) 5/4/95";
#endif
-__RCSID("$NetBSD: cut.c,v 1.26 2012/04/06 11:34:58 wiz Exp $");
+__RCSID("$NetBSD: cut.c,v 1.27 2012/06/09 19:22:47 wiz Exp $");
#endif /* not lint */
#include <ctype.h>
@@ -166,7 +166,7 @@
* 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.
+ * real reason to.
*/
for (; (p = strtok(list, ", \t")) != NULL; list = NULL) {
setautostart = start = stop = 0;
@@ -189,9 +189,9 @@
}
}
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 (stop + 1 > numpositions) {
size_t newsize;
newsize = roundup(stop + 1, ALLOC_CHUNK);
Home |
Main Index |
Thread Index |
Old Index