autoconf
[Top][All Lists]
Advanced

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

Re: weird ksh eval behavior


From: Harlan Stenn
Subject: Re: weird ksh eval behavior
Date: Thu, 01 Dec 2005 19:49:55 +0000

I submit that anything that causes somebody "familiar" with the
framework or that causes more than 2 or 3 newbies problems should be
documented.

H
--
> This one is the reason for a subtle CVS Libtool testsuite failure..
> 
> With ash-0.3.8, OpenBSD 3.8 'sh' and 'ksh' PD KSH v5.2.14 99/07/13.2,
> I get
> 
> $ false; eval 'foo=$?'; echo $foo
> 0
> 
> Is this a shell bug, or am I doing something wrong?
> If bug, where should I report it?
> If not, is this behavior considered "common knowledge" or should it be
> mentioned in the Autoconf shell portability section?
> 
> With bash, Solaris ksh and several other shells I get 1, with Solaris sh
> I get 255, because false returns 255 there.
> 
> Note that this is not the same bug as this one reported against pdksh
> 5.2.13:
> | x pdksh 5.2.13, (reported by Mark Funkenhauser): eval "$(false)" does not
> |   result in $? being set to 1 (is 0).
> |   [fixed in 5.2.14: c_sh.c(c_eval): set exstat to subst_exstat before shell
> ()]
> 
> Thanks, and sorry for the cross-post,
> Ralf
> 
> 
> _______________________________________________
> Autoconf mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/autoconf




reply via email to

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