Skip to content

Commit

Permalink
[spec/assoc] Two more tests pass now that ${!ref} does dynamic parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy C committed Jul 14, 2021
1 parent d6e7fcb commit 8ca9f57
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions spec/assoc.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,8 @@ values: val3
## END
#### ${!ref} and assoc array
shopt -s eval_unsafe_arith
show-values() {
echo values: ${A[@]}
}
Expand All @@ -564,6 +566,8 @@ ref val
## END
#### printf -v and assoc array
shopt -s eval_unsafe_arith
show-values() {
echo values: ${assoc[@]}
}
Expand Down
2 changes: 1 addition & 1 deletion test/spec.sh
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ append() {

# associative array -- mksh and zsh implement different associative arrays.
assoc() {
sh-spec spec/assoc.test.sh --osh-failures-allowed 4 \
sh-spec spec/assoc.test.sh --osh-failures-allowed 2 \
$BASH $OSH_LIST "$@"
}

Expand Down

0 comments on commit 8ca9f57

Please sign in to comment.