process_exp.ion 234 B

1234567891011
  1. echo '# ANCHOR: process_expansion'
  2. mkdir -p _tmp _tmp/t1 _tmp/t2
  3. cd _tmp
  4. let res = $(ls)
  5. let res2 = [ @(ls) ]
  6. echo $res # output the string
  7. echo @res2 # output the array
  8. cd ..
  9. rm -fr _tmp
  10. echo '# ANCHOR_END: process_expansion'