Mercurial > ec-dotfiles
comparison rc/bashrc @ 521:fb2d37acca81
Reducing bashism.
author | edogawaconan <me@myconan.net> |
---|---|
date | Wed, 18 Jun 2014 16:08:22 +0900 |
parents | a60af1e859e4 |
children | b88f621b6bd8 |
comparison
equal
deleted
inserted
replaced
520:a60af1e859e4 | 521:fb2d37acca81 |
---|---|
31 | 31 |
32 # OpenBSD X11 | 32 # OpenBSD X11 |
33 test -d /usr/X11R6/bin && PATH="${PATH}:/usr/X11R6/bin" | 33 test -d /usr/X11R6/bin && PATH="${PATH}:/usr/X11R6/bin" |
34 # PostgreSQL Yum | 34 # PostgreSQL Yum |
35 # Defaults to last version available. | 35 # Defaults to last version available. |
36 _pgbindir=(/usr/pgsql-*/bin) | 36 for _pgbindir in /usr/pgsql-*/bin; do test; done |
37 _pgbindir="${_pgbindir[@]:(-1)}" | |
38 test -d "${_pgbindir}" && PATH="${_pgbindir}:${PATH}" | 37 test -d "${_pgbindir}" && PATH="${_pgbindir}:${PATH}" |
39 unset _pgbindir | 38 unset _pgbindir |
40 | 39 |
41 # PostgreSQL EnterpriseDB | 40 # PostgreSQL EnterpriseDB |
42 # Defaults to last version available. | 41 # Defaults to last version available. |
43 _pgbindir=(/opt/PostgreSQL/*/bin) | 42 for _pgbindir in /opt/PostgreSQL/*/bin; do test; done |
44 _pgbindir="${_pgbindir[@]:(-1)}" | |
45 test -d "${_pgbindir}" && PATH="${_pgbindir}:${PATH}" | 43 test -d "${_pgbindir}" && PATH="${_pgbindir}:${PATH}" |
46 unset _pgbindir | 44 unset _pgbindir |
47 | 45 |
48 # Nuke currently defined functions | 46 # Nuke currently defined functions |
49 unset -f $(set | grep ' \(\)$' | cut -d ' ' -f 1) | 47 unset -f $(set | grep ' \(\)$' | cut -d ' ' -f 1) |