Eric Blake writes ("Re: [Qemu-devel] [PATCH 16/16] configure: do_compiler: Dump some extra info under bash"): > That's still fork-heavy. You could do: > > test -n "$BASH_VERSION" && eval ' > echo >>config.log " > funcs: ${FUNCNAME[*]} > lines: ${BASH_LINENO[*]} > files: ${BASH_SOURCE[*]}"' > > which avoids the fork, but remains silent on dash.
Thanks. I will adopt this. Although I will use if ... then as that seems to be the usual style. (&& would break with set -e which configure does not use...) Ian.