summary refs log tree commit diff
diff options
context:
space:
mode:
authorGeoff Wing <gcw@users.sourceforge.net>2005-05-31 07:44:10 +0000
committerGeoff Wing <gcw@users.sourceforge.net>2005-05-31 07:44:10 +0000
commitf688a43ac2bc022bcf498f7cd2da5ab0dc3c0193 (patch)
tree650984ae58db03bf690e64b80d09a23f6a68a321
parent0149f7afe10853f8d7001a559444552d13fc41c9 (diff)
downloadzsh-f688a43ac2bc022bcf498f7cd2da5ab0dc3c0193.tar.gz
zsh-f688a43ac2bc022bcf498f7cd2da5ab0dc3c0193.tar.xz
zsh-f688a43ac2bc022bcf498f7cd2da5ab0dc3c0193.zip
21290: configure.ac: don't need backslash quoting within single-quote areas.
Change constant RE boundary characters to slash (instead of tuples).  This
was exposed with autoconf 2.59c preferring ksh (pdksh 5.2.14p2 in NetBSD)
over bash.  It did, however, work with ksh93 and bash.
-rw-r--r--ChangeLog5
-rw-r--r--configure.ac6
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index e96cd51a0..c0cd672ac 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-31  Geoff Wing  <gcw@zsh.org>
+
+	* 21290: configure.ac: don't need backslash quoting within single-quote
+	areas.  Change constant RE boundary characters to slash.
+
 2005-05-30  Oliver Kiddle  <opk@zsh.org>
 
 	* 21266: Completion/Unix/Command/_mh: improve completion of sequences
diff --git a/configure.ac b/configure.ac
index 11e119673..e79f4062a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1239,7 +1239,7 @@ sigfile_list="`$CPP nametmp.c |
 sed -n -e 's/^#line[ 	].*\"\(.*\)\"/\1/p' \
        -e 's/^#[ 	].*\"\(.*\)\"/\1/p' |
 sed 's/\\\\\\\\/\//g' |
-$AWK '{ if (\$1 ~ \"sig\") files[[\$1]] = \$1 }
+$AWK '{ if ($1 ~ /sig/) files[[$1]] = $1 }
   END { for (var in files) print var }'`"
 rm -f nametmp.c
 if test -z "$sigfile_list"; then
@@ -1287,7 +1287,7 @@ errfile_list="`$CPP nametmp.c |
 sed -n -e 's/^#line[ 	].*\"\(.*\)\"/\1/p' \
        -e 's/^#[ 	0-9].*\"\(.*\)\"/\1/p' |
 sed 's/\\\\\\\\/\//g' |
-$AWK '{ if (\$1 ~ \"err\") files[[\$1]] = \$1 }
+$AWK '{ if ($1 ~ /err/) files[[$1]] = $1 }
   END { for (var in files) print var }'`"
 rm -f nametmp.c
 for ERRNO_H in $errfile_list /dev/null
@@ -1319,7 +1319,7 @@ resourcefile_list="`$CPP restmp.c |
 sed -n -e 's/^#line[ 	].*\"\(.*\)\"/\1/p' \
        -e 's/^#[ 	].*\"\(.*\)\"/\1/p' |
 sed 's/\\\\\\\\/\//g' |
-$AWK '{ if (\$1 ~ \"resource\") files[[\$1]] = \$1 }
+$AWK '{ if ($1 ~ /resource/) files[[$1]] = $1 }
   END { for (var in files) print var }'`"
 rm -f restmp.c
 if test -z "$resourcefile_list"; then