svn commit: r204107 - head/usr.bin/seq

Xin LI delphij at FreeBSD.org
Sat Feb 20 01:23:16 UTC 2010


Author: delphij
Date: Sat Feb 20 01:23:15 2010
New Revision: 204107
URL: http://svn.freebsd.org/changeset/base/204107

Log:
  Treat numbers after [Ee] a positive number rather than an invalid
  one.

Modified:
  head/usr.bin/seq/seq.c

Modified: head/usr.bin/seq/seq.c
==============================================================================
--- head/usr.bin/seq/seq.c	Sat Feb 20 01:05:30 2010	(r204106)
+++ head/usr.bin/seq/seq.c	Sat Feb 20 01:23:15 2010	(r204107)
@@ -207,7 +207,8 @@ numeric(const char *s)
 			}
 			if (ISEXP((unsigned char)*s)) {
 				s++;
-				if (ISSIGN((unsigned char)*s)) {
+				if (ISSIGN((unsigned char)*s) ||
+				    isdigit((unsigned char)*s)) {
 					s++;
 					continue;
 				}


More information about the svn-src-all mailing list