lkml.org 
[lkml]   [1997]   [Jun]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject2.0.30 scripts/Configure doesn't think 0 is an int
Date
Hi:

Because of the way GNU expr interprets \(\), scripts/Configure in 2.0.30
doesn't think 0 is an int. This patch fixes it and should work with both old
and new expr's. (I tested it with an expr dated Jan 1994, DLL 4.4pl1!)
--
Debian GNU/Linux 1.3 is out! ( http://www.debian.org/ )
Email: Herbert Xu ~{PmV>HI~} <herbert@greathan.apana.org.au>
Home Page: http://greathan.apana.org.au/~herbert/
PGP Key: http://greathan.apana.org.au/~herbert/pubkey.txt
--
Index: Configure
===================================================================
RCS file: /home/greathan/herbert/src/CVS/debian/kernel-source/scripts/Configure,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Configure 1997/05/30 07:32:59 1.3
+++ Configure 1997/06/22 03:23:49 1.4
@@ -45,6 +45,9 @@
#
# 090397 Axel Boldt (boldt@math.ucsb.edu) - avoid ? and + in regular
# expressions for GNU expr since version 1.15 and up use \? and \+.
+#
+# 220697 Herbert Xu (herbert@debian.org) - removed references to \(\) since
+# they mean something special to GNU expr.

#
# Make sure we're really running bash.
@@ -291,7 +294,7 @@
def=${old:-$3}
while :; do
readln "$1 ($2) [$def] " "$def" "$old"
- if expr "$ans" : '0$\|\(-[1-9]\|[1-9]\)[0-9]*$' > /dev/null; then
+ if expr "$ans" : '0$\|-[1-9][0-9]*$\|[1-9][0-9]*$' > /dev/null; then
define_int "$2" "$ans"
break
else
\
 
 \ /
  Last update: 2005-03-22 13:39    [W:0.030 / U:1.668 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site