autoconf
[Top][All Lists]
Advanced

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

Re: Severe performance problem and proposed solution


From: Paul Eggert
Subject: Re: Severe performance problem and proposed solution
Date: Mon, 25 Feb 2002 10:52:26 -0800 (PST)

> From: Akim Demaille <address@hidden>
> Date: Mon, 25 Feb 2002 19:32:30 +0100
> 
> Err... Using CVS Autoconf:

Here's a shorter test that should produce the same results.

Note that it is important that people test by putting the text into
a file and executing the file; they shouldn't just cut and paste the
text into a shell buffer.

#! /bin/sh
SHELL=/bin/sh
# To test, put this into a file, make it executable, and run the file.

x1=$LINENO
x2=$LINENO
x3=`(expr $x1 + 1) 2>/dev/null`
if test "x$x1" != "x$x2" && test "x$x3" = "x$x2" &&
   $SHELL -c '
     x1=$LINENO
     x2=$LINENO
     x3=`(expr $x1 + 1) 2>/dev/null`
     test "x$x1" != "x$x2" && test "x$x3" = "x$x2"
   '
then echo "test succeeded"
else echo "test failed -- your shell has a LINENO bug"; exit 1
fi



reply via email to

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