From: Rob Browning Date: Sun, 18 Aug 2019 17:17:25 +0000 (-0500) Subject: configure.inc: avoid bash-specific printf %q X-Git-Tag: 0.30~18 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=bup.git;a=commitdiff_plain;h=3f5e89ef0ed18eecbacc3671211f804b54b93c51;hp=9416fd0787d5f960e1cb07e313ebc9d00e8bc3ec configure.inc: avoid bash-specific printf %q Although I'm the one who suggested it in the first place, avoid printf %q since it's bash specific, and the ./configure specifies /bin/sh. Signed-off-by: Rob Browning Tested-by: Rob Browning --- diff --git a/config/configure.inc b/config/configure.inc index d105fdd..b25ca50 100644 --- a/config/configure.inc +++ b/config/configure.inc @@ -47,6 +47,16 @@ ac_standard="--src=DIR where the source lives (.) __fail=exit + +__ac_tmpdir='' +__ac_clean_up () { + if test "$__ac_tmpdir"; then + rm -rf "$__ac_tmpdir" + fi +} +trap __ac_clean_up EXIT + + if dirname B/A 2>/dev/null >/dev/null; then __ac_dirname() { dirname "$1" @@ -585,7 +595,6 @@ MF_PATH_INCLUDE () { # AC_INIT () { __ac_tmpdir=$(mktemp -d) - trap "$(printf 'rm -rf %q' "$__ac_tmpdir")" EXIT __config_files="config.cmd config.sub config.h config.mak config.log" __config_detritus="config.h.tmp" rm -f $__config_files $__config_detritus