From c3a6e5fa897533274077b7573a6d2a302011be68 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 29 Dec 2007 11:38:48 +0000 Subject: Move XARGS initialization from portage.data to isolated-functions.sh. (trunk r9095:9097) svn path=/main/branches/2.1.2/; revision=9098 --- bin/isolated-functions.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'bin/isolated-functions.sh') diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh index e06fbb826..3290654a6 100644 --- a/bin/isolated-functions.sh +++ b/bin/isolated-functions.sh @@ -375,6 +375,17 @@ case "${NOCOLOR:-false}" in ;; esac +if [[ -z ${XARGS} ]] ; then + case ${USERLAND} in + BSD|Darwin) + export XARGS="xargs" + ;; + *) + export XARGS="xargs -r" + ;; + esac +fi + has() { hasq "$@" } -- cgit v1.2.3-1-g7c22