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: Zack Weinberg
Subject: Re: Severe performance problem and proposed solution
Date: Mon, 25 Feb 2002 11:02:45 -0800
User-agent: Mutt/1.3.27i

On Mon, Feb 25, 2002 at 10:52:26AM -0800, Paul Eggert wrote:
> > 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.

Thanks, I couldn't figure out what exactly to do with Akim's original
test.  I will pass that along and report the results.

zw


> 
> 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]