Re: script/Configure screwed on integer param.

Jesse Thilo (Jesse.Thilo@pobox.com)
Sun, 2 Feb 1997 08:10:31 -0500 (EST)


> With this ncrBsd driver, i pass two integer args, which the
> configure script didnt recognize as int, but launch the help text
> instead.

> The culprit is in function int() of Configure:
>
> expr "$ans" : '0$\|-?[1-9][0-9]*$' always return 0 on my system,
> whatever ans will be. I can't fully understand this regexp.
> I can substitute it with something simpler, such as [[:digit:]]*,
> though this is a leaky filter.

> My shellutils is 1.16, debian rev. 1.

The newer shellutils are a bit more POSIX compliant, so they require a
backslash before the '?' in this context. You also need to put a
backslash before the '+' in the call to expr in the hex function.

The Menuconfig script needs the same changes.