patch-2.1.26 linux/scripts/Menuconfig

Next file: linux/CREDITS
Previous file: linux/scripts/Configure
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.25/linux/scripts/Menuconfig linux/scripts/Menuconfig
@@ -400,7 +400,7 @@
 			answer="`cat MCdialog.out`"
 			answer="${answer:-$3}"
 
-			if expr $answer : '0$\|-?[1-9][0-9]*$' >/dev/null
+			if expr $answer : '0$\|-\?[1-9][0-9]*$' >/dev/null
 			then
 				eval $2="$answer"
 			else
@@ -433,7 +433,7 @@
 			answer="${answer:-$3}"
 			answer="${answer##*[x,X]}"
 
-			if expr $answer : '[0-9a-fA-F]+$' >/dev/null
+			if expr $answer : '[0-9a-fA-F]\+$' >/dev/null
 			then
 				eval $2="$answer"
 			else


FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov