changeset 521:fb2d37acca81

Reducing bashism.
author edogawaconan <me@myconan.net>
date Wed, 18 Jun 2014 16:08:22 +0900
parents a60af1e859e4
children a0f4a3e15322
files rc/bashrc
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/rc/bashrc	Fri Jun 06 10:49:10 2014 +0900
+++ b/rc/bashrc	Wed Jun 18 16:08:22 2014 +0900
@@ -33,15 +33,13 @@
 test -d /usr/X11R6/bin && PATH="${PATH}:/usr/X11R6/bin"
 # PostgreSQL Yum
 # Defaults to last version available.
-_pgbindir=(/usr/pgsql-*/bin)
-_pgbindir="${_pgbindir[@]:(-1)}"
+for _pgbindir in /usr/pgsql-*/bin; do test; done
 test -d "${_pgbindir}" && PATH="${_pgbindir}:${PATH}"
 unset _pgbindir
 
 # PostgreSQL EnterpriseDB
 # Defaults to last version available.
-_pgbindir=(/opt/PostgreSQL/*/bin)
-_pgbindir="${_pgbindir[@]:(-1)}"
+for _pgbindir in /opt/PostgreSQL/*/bin; do test; done
 test -d "${_pgbindir}" && PATH="${_pgbindir}:${PATH}"
 unset _pgbindir