On Mon, Feb 25, 2002 at 10:52:26AM -0800, Paul Eggert wrote:
> > From: Akim Demaille <[EMAIL PROTECTED]>
> > 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