>>> "Andreas" == Andreas Schwab <[EMAIL PROTECTED]> writes:
> Akim Demaille <[EMAIL PROTECTED]> writes: >> if (local foo) >/dev/null 2>&1; then :; else >> local () { true; } >> fi > Note that local is only valid in function context, so this will always > produce a failure. Thanks, I didn't know. How about this then? ( foo=bar test_local () { local foo=foo } test_local test $foo = bar ) || local () { case $1 in *=*) eval "$1";; esac } _______________________________________________ http://lists.gnu.org/mailman/listinfo/libtool