|
| From: | Ian Jackson |
| Subject: | Re: [Qemu-devel] [PATCH 16/16] configure: do_compiler: Dump some extra info under bash |
| Date: | Tue, 24 Apr 2018 16:05:01 +0100 |
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.
| [Prev in Thread] | Current Thread | [Next in Thread] |