[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFH] zsh shell function portability issue
From: |
Ralf Wildenhues |
Subject: |
Re: [RFH] zsh shell function portability issue |
Date: |
Fri, 17 Oct 2008 09:19:24 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
* 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