OILS / spec / ysh-old.test.sh View on Github | oils.pub

15 lines, 5 significant
1## our_shell: ysh
2
3# OLD test cases, collected during YSH evoluation
4
5#### Empty array and assignment builtin (regression)
6shopt --unset no_osh_builtins
7
8# Bug happens with shell arrays too
9empty=()
10declare z=1 "${empty[@]}"
11echo z=$z
12## STDOUT:
13z=1
14## END
15