Project

General

Profile

« Previous | Next » 

Revision 9798

bugfix: lib/sh/util.sh: need to use `declare -p` instead of ${var+isset} because ${var+isset} returns not set for empty arrays

View differences:

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