Skip to content

Commit

Permalink
Fix a test case
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuichiueda committed Dec 22, 2024
1 parent 8c91881 commit 97eefbd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/test_parameters.bash
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ res=$($com -c 'A=1 ; f () { local A ; declare -r A ; A=123 ; } ; f')
[[ "$?" -eq 1 ]] || err $LINENO

#res=$($com -c 'A=1 ; f () { local -a A ; A[1]=123 ; echo ${A[@]} ; } ; f ; echo $A')
#[[ "$res" -eq '123
#[[ "$res" == '123
#1' ]] || err $LINENO

res=$($com -c 'f () { local A ; declare -r A ; A=123 ; } ; f; A=3 ; echo $A')
Expand Down

0 comments on commit 97eefbd

Please sign in to comment.