Revert previous commit because it's no comptible (doesn't pass arguments to
authorZac Medico <zmedico@gentoo.org>
Sat, 19 Dec 2009 03:59:06 +0000 (03:59 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 19 Dec 2009 03:59:06 +0000 (03:59 -0000)
die).

svn path=/main/trunk/; revision=15120

bin/isolated-functions.sh

index 719e32fae7bbf3d41929e353d09499f271054edf..893ce57ba0fb4b01fb42767cfc2b00eac220738f 100755 (executable)
@@ -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='for _pipestatus in ${PIPESTATUS[*]} ; do [ $_pipestatus -eq 0 ] || die ; done'
+alias assert='_pipestatus="${PIPESTATUS[*]}"; [[ "${_pipestatus// /}" -eq 0 ]] || die'
 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'