diff options
author | axel <axel@liljencrantz.se> | 2006-08-01 02:56:26 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-08-01 02:56:26 +1000 |
commit | daf171aa866a55d3e079fbcdd9cf77d139c286c4 (patch) | |
tree | c40664557db3cf9d2af31c8ab668607a2a522ac2 | |
parent | d1bbb893892c60bf5a5c6d8e6b1c88e40609b4b6 (diff) |
Make grep call in seq fallback implementation Posix compliant
darcs-hash:20060731165626-ac50b-5560aebc877f49f4942b2c730273d8c2424bec24.gz
-rwxr-xr-x | seq.in | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -39,7 +39,7 @@ switch (count $argv) end for i in $from $step $to - if not echo $i | grep '^-\?[0-9]*\(\|.[0-9]\+\)$' >/dev/null + if not echo $i | grep -E ^-?[0-9]*([0-9]*|\.[0-9]+)$' >/dev/null printf (_ "%s: '%s' is not a number\n") seq $i exit 1 end |