]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(AS_SHELL_SANITIZE): _AS_CR_PREPARE needs to be invoked before
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 1 Nov 2001 22:41:54 +0000 (22:41 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 1 Nov 2001 22:41:54 +0000 (22:41 +0000)
_AS_LINENO_PREPARE.

(_AS_LINENO_PREPARE): Use as_cr_digits and as_cr_alnum rather than
character ranges.

lib/m4sugar/m4sh.m4

index e2f0c827992e436edf8c5d1b73cf0cc2f1b85f07..d4041e1acbb3406fe293f6c04717bbdca5eab492 100644 (file)
@@ -164,11 +164,11 @@ m4_foreach([_AS_var],
 # Name of the executable.
 as_me=`AS_BASENAME("$[0]")`
 
-# Rewrite early, but we need PATH_SEPARATOR.
+# PATH needs CR, and LINENO needs CR and PATH.
+_AS_CR_PREPARE
 _AS_PATH_SEPARATOR_PREPARE
 _AS_LINENO_PREPARE
 
-_AS_CR_PREPARE
 _AS_ECHO_N_PREPARE
 _AS_EXPR_PREPARE
 _AS_LN_S_PREPARE
@@ -528,10 +528,10 @@ m4_define([_AS_LINENO_PREPARE],
       N
       s,$,-,
       : loop
-      s,^\([[0-9]]*\)\(.*\)[[$]]LINENO\([[^a-zA-Z0-9_]]\),\1\2\1\3,
+      s,^\([['$as_cr_digits']]*\)\(.*\)[[$]]LINENO\([[^'$as_cr_alnum'_]]\),\1\2\1\3,
       t loop
       s,-$,,
-      s,^[[0-9]]*\n,,
+      s,^[['$as_cr_digits']]*\n,,
     ' >$as_me.lineno &&
   chmod +x $as_me.lineno ||
     AS_ERROR([cannot create $as_me.lineno; rerun with a POSIX shell])