diff options
author | Jim Meyering <jim@meyering.net> | 2003-03-20 13:49:39 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-03-20 13:49:39 +0000 |
commit | 0568c4e2d4ea7edd642763b0849e8489b326673c (patch) | |
tree | 8ff16c117197f7c61291cff1d812d971a10c0e80 /src | |
parent | 8fe825b78708a901f207df557a887da218d6f596 (diff) | |
download | coreutils-0568c4e2d4ea7edd642763b0849e8489b326673c.tar.xz |
(valid_format): Also accept ` ' and `'' as valid
format flag characters.
Do not require that a field width be specified.
Do not fail when given a field width of `0'.
Diffstat (limited to 'src')
-rw-r--r-- | src/seq.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -1,5 +1,5 @@ /* seq - print sequence of numbers to standard output. - Copyright (C) 1994-2002 Free Software Foundation, Inc. + Copyright (C) 1994-2003 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -143,8 +143,8 @@ valid_format (const char *fmt) if (*fmt == '\0') return 0; - fmt += strspn (fmt, "-+#0"); - if (ISDIGIT (*fmt)) + fmt += strspn (fmt, "-+#0 '"); + if (ISDIGIT (*fmt) || *fmt == '.') { fmt += strspn (fmt, "0123456789"); |