Skip to content

Commit 5ae639f

Browse files
committed
with an associative array, "${map[@]}" order is indeterinate, broke in bash5.1
1 parent ebd194c commit 5ae639f

File tree

1 file changed

+1
-1
lines changed
  • exercises/practice/rational-numbers/.meta

1 file changed

+1
-1
lines changed

exercises/practice/rational-numbers/.meta/example.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ sub() {
3030
local -A r2
3131
parse $2 r2
3232
(( r2[numerator] *= -1 ))
33-
add $1 $(reduced "${r2[@]}")
33+
add $1 $(reduced ${r2[numerator]} ${r2[denominator]})
3434
}
3535

3636
mul() {

0 commit comments

Comments
 (0)