summaryrefslogtreecommitdiff
path: root/src/expr/mkmetakind
diff options
context:
space:
mode:
Diffstat (limited to 'src/expr/mkmetakind')
-rwxr-xr-xsrc/expr/mkmetakind6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/expr/mkmetakind b/src/expr/mkmetakind
index 079bea861..89e2861d6 100755
--- a/src/expr/mkmetakind
+++ b/src/expr/mkmetakind
@@ -210,13 +210,13 @@ function register_metakind {
";
# figure out the range given by $nc
- if expr "$nc" : '[0-9]\+$' >/dev/null; then
+ if expr "$nc" : '[0-9][0-9]*$' >/dev/null; then
lb=$nc
ub=$nc
- elif expr "$nc" : '[0-9]\+:$' >/dev/null; then
+ elif expr "$nc" : '[0-9][0-9]*:$' >/dev/null; then
let `echo "$nc" | awk 'BEGIN{FS=":"}{print"lb="$1}'`
ub=MAX_CHILDREN
- elif expr "$nc" : '[0-9]\+:[0-9]\+$' >/dev/null; then
+ elif expr "$nc" : '[0-9][0-9]*:[0-9][0-9]*$' >/dev/null; then
let `echo "$nc" | awk 'BEGIN{FS=":"}{print"lb="$1" ub="$2}'`
if [ $ub -lt $lb ]; then
echo "$kf:$lineno: error in range \`$nc': LB < UB (in definition of $k)" >&2
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback