projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bfd14e
)
This makes seq's --width (-w) option work properly even when the
author
Jim Meyering
<jim@meyering.net>
Thu, 4 Sep 2003 22:21:25 +0000
(22:21 +0000)
committer
Jim Meyering
<jim@meyering.net>
Thu, 4 Sep 2003 22:21:25 +0000
(22:21 +0000)
endpoint requiring the largest width is negative and smaller than
the other endpoint.
(get_width_format): Include `-' in the set of bytes
allowed in a `simple' number (no decimal point, no exponent).
src/seq.c
patch
|
blob
|
history
diff --git
a/src/seq.c
b/src/seq.c
index b073c3c01aa322fbf6033864d31429f638b4b37f..6e640a4a7adf22d227e16b2c4c414a31132f7f38 100644
(file)
--- a/
src/seq.c
+++ b/
src/seq.c
@@
-259,7
+259,7
@@
get_width_format ()
}
sprintf (buffer, "%g", rint (max_val));
- if (buffer[strspn (buffer, "0123456789")] != '\0')
+ if (buffer[strspn (buffer, "
-
0123456789")] != '\0')
return "%g";
width1 = strlen (buffer);