From 3f5e89ef0ed18eecbacc3671211f804b54b93c51 Mon Sep 17 00:00:00 2001 From: Rob Browning Date: Sun, 18 Aug 2019 12:17:25 -0500 Subject: [PATCH] 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 --- config/configure.inc | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) 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 -- 2.39.2