I think I have found ('a' or 'the') bug:
---
validate_nice_value () {
  _retval=1
  # first, try to subtract number from itself to validate numeric input
  # (expr is noisy, always throw away its output)
  set +e
  expr "$1" - "$1" > /dev/null 2>&1
  if [ $? -ne 2 ]; then
    # now check for valid range
---
but I get:
---
[EMAIL PROTECTED]:~$ expr "raton" "-" "raton"
expr: non-numeric argument
[EMAIL PROTECTED]:~$ echo $?
3
[EMAIL PROTECTED]:~$ expr "" "-" ""
expr: non-numeric argument
[EMAIL PROTECTED]:~$ echo $?
3
---
2 is a syntax error
3 if an error occured
here an error appears on empty or non-numeric value

Replacing:
if [ $? -ne 2 ]; then
by
if [ $? -ne 3 ]; then
would probably work.

-- 
x11-common is uninstallable when debconf method is kde
https://launchpad.net/bugs/68267

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to