Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Feb 2010 01:23:15 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r204107 - head/usr.bin/seq
Message-ID:  <201002200123.o1K1NFv3055600@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 				}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201002200123.o1K1NFv3055600>