add a __bashpid helper for <bash-4.0 versions
authorMike Frysinger <vapier@gentoo.org>
Sat, 21 Dec 2013 09:46:10 +0000 (04:46 -0500)
committerMike Frysinger <vapier@gentoo.org>
Sat, 21 Dec 2013 09:46:10 +0000 (04:46 -0500)
commit7f8747faeb36ad308f820c5c68c0126fcbeac528
treea2294fa788e08109d42ff70650507cdce67ba53a
parent8d4d077d5775c4f1dac724d5e6fbb7cf14db1920
add a __bashpid helper for <bash-4.0 versions

The $BASHPID variable is new to bash-4.0, so we need to add fallback logic
to support older versions (notably, bash-3.2).

Reported-by: Ryan Hill <dirtyepic@gentoo.org>
bin/ebuild-helpers/prepstrip
bin/ebuild.sh
bin/helper-functions.sh
bin/isolated-functions.sh
bin/phase-functions.sh
bin/phase-helpers.sh