Skip to content

Commit b371edb

Browse files
author
Damien Nadé
committed
argsparse.sh: fixed bash 4.4.23 compatibility issue with declare -p output (#7)
1 parent 7f0c2ce commit b371edb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

argsparse.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ __argsparse_is_array_declared() {
826826
[[ $# -eq 1 ]] || return 1
827827
local array_name=$1
828828
[[ "$(declare -p "$array_name" 2>/dev/null)" = \
829-
"declare -"[aA]" $array_name='("* ]]
829+
"declare -"[aA]" $array_name="* ]]
830830
}
831831

832832
__argsparse_has_array_item() {

0 commit comments

Comments
 (0)