summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2008-11-18 01:31:27 +0000
committerMike Frysinger <vapier@gentoo.org>2008-11-18 01:31:27 +0000
commit150ca64cbb4a96f468cb69ff46855da9031a0e5f (patch)
tree33587e6abf11b5ccb865b2fbfe653f9d77fa21e0
parenta5be64b4d14817f6ee685829b827e884fd28a7b8 (diff)
downloadportage-150ca64cbb4a96f468cb69ff46855da9031a0e5f.tar.gz
portage-150ca64cbb4a96f468cb69ff46855da9031a0e5f.tar.bz2
portage-150ca64cbb4a96f468cb69ff46855da9031a0e5f.zip
include quotes when showing make output
svn path=/main/trunk/; revision=11988
-rwxr-xr-xbin/emake11
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/emake b/bin/emake
index db5b30b59..18d8f089c 100755
--- a/bin/emake
+++ b/bin/emake
@@ -11,6 +11,15 @@
# /etc/make.globals here because emake is only called from an
# ebuild.
-[[ $PORTAGE_QUIET = 1 ]] || echo ${MAKE:-make} $MAKEOPTS $EXTRA_EMAKE "$@" >&2
+if [[ $PORTAGE_QUIET != 1 ]] ; then
+ (
+ for arg in ${MAKE:-make} $MAKEOPTS $EXTRA_EMAKE "$@" ; do
+ [[ ${arg} == *" "* ]] \
+ && printf "'%s' " "${arg}" \
+ || printf "%s " "${arg}"
+ done
+ printf "\n"
+ ) >&2
+fi
exec ${MAKE:-make} ${MAKEOPTS} ${EXTRA_EMAKE} "$@"