From: Zac Medico Date: Sun, 2 Sep 2012 22:13:24 +0000 (-0700) Subject: ebuild-helpers/bsd/sed: whitespace + quoting X-Git-Tag: v2.2.0_alpha124~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e88ca68ce64a4982e4a09ba8cafdad70fcaa544a;p=portage.git ebuild-helpers/bsd/sed: whitespace + quoting --- diff --git a/bin/ebuild-helpers/bsd/sed b/bin/ebuild-helpers/bsd/sed index cc447696d..01b88471d 100755 --- a/bin/ebuild-helpers/bsd/sed +++ b/bin/ebuild-helpers/bsd/sed @@ -5,23 +5,23 @@ scriptpath=${BASH_SOURCE[0]} scriptname=${scriptpath##*/} -if [[ sed == ${scriptname} ]] && [[ -n ${ESED} ]]; then +if [[ sed == ${scriptname} && -n ${ESED} ]]; then exec ${ESED} "$@" elif type -P g${scriptname} > /dev/null ; then exec g${scriptname} "$@" else old_IFS="${IFS}" IFS=":" - + for path in $PATH; do if [[ -x ${path}/${scriptname} ]]; then [[ ${path}/${scriptname} -ef ${scriptpath} ]] && continue - exec ${path}/${scriptname} "$@" + exec "${path}/${scriptname}" "$@" exit 0 fi done - + IFS="${old_IFS}" fi - + exit 1