1 #!/bin/bash
2 #
3 # Arrays decay upon assignment (without splicing) and equality. This will not
4 # be true in Oil -- arrays will be first class.
5
6 ### Assignment Causes Array Decay
7 set -- x y z
8 #argv "[$@]" # NOT DECAYED here.
9 var="[$@]"
10 argv "$var"
11 # stdout: ['[x y z]']