autoconf-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

$status is read-only for zsh


From: Ralf Wildenhues
Subject: $status is read-only for zsh
Date: Sun, 16 Nov 2008 17:55:56 +0100
User-agent: Mutt/1.5.18 (2008-05-17)

Pushed to fix test failure; see manual for details.

Cheers,
Ralf

        Do not use read-only variable $status.
        * tests/compile.at (AC_RUN_IFELSE): Use $estatus instead of
        $status, for zsh.

diff --git a/tests/compile.at b/tests/compile.at
index ba931fc..6289960 100644
--- a/tests/compile.at
+++ b/tests/compile.at
@@ -2,7 +2,7 @@
 
 AT_BANNER([Low level compiling/preprocessing macros.])
 
-# Copyright (C) 2000, 2001, 2003, 2005, 2006, 2007 Free Software
+# Copyright (C) 2000, 2001, 2003, 2005, 2006, 2007, 2008 Free Software
 # Foundation, Inc.
 #
 # This program is free software: you can redistribute it and/or modify
@@ -123,16 +123,16 @@ AC_RUN_IFELSE([AC_LANG_PROGRAM([], [return 0])],
 
 AC_RUN_IFELSE([AC_LANG_PROGRAM([], [return 2])],
              [AC_MSG_ERROR([saw `return 2' as a success])],
-             [status=$?
-test $status != 2 &&
-  AC_MSG_ERROR([did not get as 2 exit status: $status])])
+             [estatus=$?
+test $estatus != 2 &&
+  AC_MSG_ERROR([did not get as 2 exit status: $estatus])])
 
 # The old stinky one.
 AC_TRY_RUN([int main () { return 3; }],
           [AC_MSG_ERROR([saw `return 3' as a success])],
-          [status=$?
-test $status != 3 &&
-  AC_MSG_ERROR([did not get 3 as exit status: $status])])
+          [estatus=$?
+test $estatus != 3 &&
+  AC_MSG_ERROR([did not get 3 as exit status: $estatus])])
 
 ]])
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]