commit:     4c3a9faded0b5cdce7bac51069759ae23dfa859f
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Sat May 24 07:02:04 2014 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat May 24 07:02:04 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=proj/eselect.git;a=commit;h=4c3a9fad

Fix bash 4.3 breakage.

* modules/profile.eselect (get_repos): Fix bash 4.3 breakage,
bug 511132.

---
 ChangeLog               | 5 +++++
 modules/profile.eselect | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index d9dd9fd..b7f4a0d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-05-24  Ulrich Müller  <[email protected]>
+
+       * modules/profile.eselect (get_repos): Fix bash 4.3 breakage,
+       bug 511132.
+
 2014-05-20  Ulrich Müller  <[email protected]>
 
        * bin/Makefile.am (dosed):

diff --git a/modules/profile.eselect b/modules/profile.eselect
index 3bd5408..94aed2b 100644
--- a/modules/profile.eselect
+++ b/modules/profile.eselect
@@ -33,7 +33,7 @@ get_repos() {
        portageq get_repos "${EROOT:-/}" \
                | sed "s/[[:space:]]\+/\n/g;s/^${DEFAULT_REPO}\$/ &/gm" \
                | LC_ALL=C sort
-       [[ -z ${PIPESTATUS[@]#0} ]]
+       [[ "${PIPESTATUS[*]}" = "0 0 0" ]]
 }
 
 # get paths for a given list of repositories

Reply via email to