aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/seq
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2010-02-20 01:23:15 +0000
committerXin LI <delphij@FreeBSD.org>2010-02-20 01:23:15 +0000
commit0a167a9b98fa8a9cca77a6f6c09bcb366579d1d5 (patch)
treeaedceaae722b6def44107f2aee6d6c3b208fed8d /usr.bin/seq
parentad542210481dbee58aac2cf208c1ec35aab845fb (diff)
downloadsrc-0a167a9b98fa8a9cca77a6f6c09bcb366579d1d5.tar.gz
src-0a167a9b98fa8a9cca77a6f6c09bcb366579d1d5.zip
Treat numbers after [Ee] a positive number rather than an invalid
one.
Notes
Notes: svn path=/head/; revision=204107
Diffstat (limited to 'usr.bin/seq')
-rw-r--r--usr.bin/seq/seq.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/seq/seq.c b/usr.bin/seq/seq.c
index e7f9fbca991c..f94ca0051755 100644
--- a/usr.bin/seq/seq.c
+++ b/usr.bin/seq/seq.c
@@ -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;
}