All right, I've got insomnia, and I'm fixing another little
bug in Menuconfig.
<ftp://ftp.shout.net/pub/users/mec/patch/menu-0.2175>
This patch fixes a bug in scripts/Menuconfig that prevents it from
accepting the integer value 0.
Michael Chastain
<mailto:mec@shout.net>
"love without fear"
===
diff -u -r -N linux-2.1.75/scripts/Menuconfig linux/scripts/Menuconfig
--- linux-2.1.75/scripts/Menuconfig Sun Dec 21 19:41:30 1997
+++ linux/scripts/Menuconfig Tue Dec 23 05:49:58 1997
@@ -445,7 +445,7 @@
# Semantics of + and ? in GNU expr changed, so
# we avoid them:
- if expr "$answer" : '0$\|\(-[1-9]\|[0-9]\)[0-9]*$' >/dev/null
+ if expr "$answer" : '0$\|-[1-9][0-9]*$\|[1-9][0-9]*$' >/dev/null
then
eval $2="$answer"
else
@@ -1213,7 +1213,7 @@
Press <?> for additional information about this option."
inputbox_instructions_int="\
-Please enter a decimal value between 1 and 9999. \
+Please enter a decimal value. \
Fractions will not be accepted. \
Use the <TAB> key to move from the input field to the buttons below it."