How about just using /usr/bin/test and get rid of the expr. AFAIK, it
should whine if the input is not numeric, eg:

[EMAIL PROTECTED]:~$ i=4; test "$i" -ge -20 -a "$i" -lt 10 2> /dev/null; echo $?
0
[EMAIL PROTECTED]:~$ i=abc; test "$i" -ge -20 -a "$i" -lt 10 2> /dev/null; echo 
$?
2
[EMAIL PROTECTED]:~$ i=42; test "$i" -ge -20 -a "$i" -lt 10 2> /dev/null; echo 
$?
1

Or am I missing something here?

-- 
x11-common have an important debconf bug
https://launchpad.net/bugs/68267

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to