有没有办法$array[] = 'foo';在bash中执行类似PHP的操作:
$array[] = 'foo';
array[0] = 'foo' array[1] = 'bar'
arrays bash
arrays ×1
bash ×1