Skip to content

Commit

Permalink
fix test on BASH_REMATCH
Browse files Browse the repository at this point in the history
  • Loading branch information
lexming committed Oct 17, 2023
1 parent 6f9c766 commit 967872d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/test_zzz_bash_sanity.nhc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ plan $((3+2+2)) "bash variable sanity check" && {
is $BASHPID $$ "BASH built-in variable \$BASHPID"
isnt $L $LINENO "BASH built-in variable \$LINENO"

for VAR in BASH_REMATCH BASH_VERSINFO ; do
for VAR in BASH_REMATCH; do
like "$(declare -p $VAR 2>/dev/null)" 'declare -a *' "BASH built-in variable \$$VAR"
done
for VAR in BASH_VERSINFO; do
like "$(declare -p $VAR 2>/dev/null)" 'declare -ar *' "BASH built-in variable \$$VAR"
done

Expand Down

0 comments on commit 967872d

Please sign in to comment.