]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(_AS_DETECT_BETTER_SHELL): Test candidate
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 25 Dec 2004 07:49:41 +0000 (07:49 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 25 Dec 2004 07:49:41 +0000 (07:49 +0000)
shells in subshell, to avoid noise from ash.  (trivial change)

lib/m4sugar/m4sh.m4

index 3036cab6f80257cdde88b65c8305b17899a30ba5..e403b1c9b95343e3e5a32de554cb4d843cc6ce89 100644 (file)
@@ -228,10 +228,12 @@ if test "x$CONFIG_SHELL" = x; then
        esac])
 
       for as_shell in $as_candidate_shells $SHELL; do
-        AS_IF([_AS_RUN([_AS_DETECT_REQUIRED_BODY], [$as_shell 2> /dev/null])],
+        AS_IF([_AS_RUN([_AS_DETECT_REQUIRED_BODY],
+                        [($as_shell) 2> /dev/null])],
               [CONFIG_SHELL=$as_shell
               as_have_required=yes
-              AS_IF([_AS_RUN([_AS_DETECT_SUGGESTED_BODY], [$as_shell 2> /dev/null])],
+              AS_IF([_AS_RUN([_AS_DETECT_SUGGESTED_BODY],
+                             [($as_shell) 2> /dev/null])],
                     [break])])
       done