]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(_AT_CHECK) [--trace]: Rework a shell pattern
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 12 Dec 2004 09:49:16 +0000 (09:49 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 12 Dec 2004 09:49:16 +0000 (09:49 +0000)
to avoid using a negated character class.  Reported by Nicolas Joly.

lib/autotest/general.m4

index c5abd7190c600fd32aad97c201a00114f53bbd9b..00a52f5e47b87c342511fbd78c5565c374df059c 100644 (file)
@@ -1234,7 +1234,8 @@ if test -n "$at_traceon"; then
     case "$at_cmd_expanded" in
         *\$\(*\)*)         at_reason='a $(...) command substitution' ;;
         *\`*\`*)           at_reason='a `...` command substitution' ;;
-        *[[^\\]]"$at_lf"*) at_reason='an embedded newline' ;;
+        *\\"$at_lf"*)      at_reason= ;;
+        *"$at_lf"*)        at_reason='an embedded newline' ;;
         *)                 at_reason= ;;
     esac
     if test -n "$at_reason"; then