diff options
author | Jim Meyering <jim@meyering.net> | 2003-09-04 22:21:25 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-09-04 22:21:25 +0000 |
commit | 221e569fbfeafc27b579b9e96d7d42d83ae0fc97 (patch) | |
tree | 57017c7a41f4e9da11128017299e994832f3f7ca /src | |
parent | 0bfd14e9b68e474e1bf13343bdf0854063ee5728 (diff) | |
download | coreutils-221e569fbfeafc27b579b9e96d7d42d83ae0fc97.tar.xz |
This makes seq's --width (-w) option work properly even when the
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).
Diffstat (limited to 'src')
-rw-r--r-- | src/seq.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |