* [gentoo-commits] portage r15119 - main/trunk/bin
@ 2009-12-19 3:22 Zac Medico (zmedico)
0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2009-12-19 3:22 UTC (permalink / raw
To: gentoo-commits
Author: zmedico
Date: 2009-12-19 03:22:20 +0000 (Sat, 19 Dec 2009)
New Revision: 15119
Modified:
main/trunk/bin/isolated-functions.sh
Log:
Fix the assert alias to 'value to great for base' messages in some cases.
Thanks to Jonathan Callen <abcd@g.o> for reporting.
Modified: main/trunk/bin/isolated-functions.sh
===================================================================
--- main/trunk/bin/isolated-functions.sh 2009-12-18 08:32:44 UTC (rev 15118)
+++ main/trunk/bin/isolated-functions.sh 2009-12-19 03:22:20 UTC (rev 15119)
@@ -5,7 +5,7 @@
# We need this next line for "die" and "assert". It expands
# It _must_ preceed all the calls to die and assert.
shopt -s expand_aliases
-alias assert='_pipestatus="${PIPESTATUS[*]}"; [[ "${_pipestatus// /}" -eq 0 ]] || die'
+alias assert='for _pipestatus in ${PIPESTATUS[*]} ; do [ $_pipestatus -eq 0 ] || die ; done'
alias save_IFS='[ "${IFS:-unset}" != "unset" ] && old_IFS="${IFS}"'
alias restore_IFS='if [ "${old_IFS:-unset}" != "unset" ]; then IFS="${old_IFS}"; unset old_IFS; else unset IFS; fi'
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-12-19 3:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-19 3:22 [gentoo-commits] portage r15119 - main/trunk/bin Zac Medico (zmedico)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox