bash コマンドの結果を配列として格納する

コマンドの結果を配列として格納する。

$ls_result=($(ls))
$echo ${ls_result[@]}