From: Zac Medico Date: Wed, 24 Dec 2008 20:01:44 +0000 (-0000) Subject: Don't use 'local' builtin outside of a function. X-Git-Tag: v2.2_rc19~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=699d3ba1d15a44ac2aea0c6b29db1770de4f9040;p=portage.git Don't use 'local' builtin outside of a function. svn path=/main/trunk/; revision=12300 --- diff --git a/bin/prepstrip b/bin/prepstrip index 50153102e..3e4473314 100755 --- a/bin/prepstrip +++ b/bin/prepstrip @@ -84,7 +84,7 @@ if ! hasq binchecks ${RESTRICT} && \ scanelf -yqRBF '#k%F' -k '!.symtab' "$@" | sed -e "s#^$D##" > "$log" if [[ -n $QA_PRESTRIPPED && -s $log && \ ${QA_STRICT_PRESTRIPPED-unset} = unset ]] ; then - local shopts=$- + shopts=$- set -o noglob for x in $QA_PRESTRIPPED ; do sed -e "s#^${x#/}\$##" -i "$log"