Revision 9798
Added by Aaron Marcuse-Kubitza over 11 years ago
util.sh | ||
---|---|---|
4 | 4 |
if test ! "$_util_sh_include_guard_utils"; then |
5 | 5 |
_util_sh_include_guard_utils=1 |
6 | 6 |
|
7 |
isset() { test "${!1+isset}"; }
|
|
7 |
isset() { declare -p "$1" &>/dev/null; }
|
|
8 | 8 |
|
9 | 9 |
realpath() { readlink -f -- "$1"; } |
10 | 10 |
|
Also available in: Unified diff
bugfix: lib/sh/util.sh: need to use `declare -p` instead of ${var+isset} because ${var+isset} returns not set for empty arrays