Re: [RFH] zsh shell function portability issue

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

 



* Paolo Bonzini wrote on Fri, Oct 17, 2008 at 09:14:20AM CEST:
> 
> But the only arguments in the eval *when the eval appears in shell
> functions* (I don't care about user code relying on _AC_DO, because it
> will appear outside functions) are:
> 
>   $ac_cpp
>   $ac_compile
>   $ac_link
>   ./conftest$ac_exeext
> 
> and in turn
> 
> $ grep ac_compile= *
> c.m4:ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext
[...]

As long as no user code overwrites these variables, yes.

> No "exit in a subshell" here, right?

Right.  Might want to explicitly discourage touching those variables.
(This is hopefully not common today, but probably not so uncommon in
legacy code.)

Cheers,
Ralf


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux