in bash how to put extglobed file names into array?

后端 未结 0 972
滥情空心
滥情空心 2020-12-04 17:58

I knew I can do arr=(*.log) to get all *.log files into arr. But when I try extglob with more complex pattern it seems fail:

$ shopt -s nullglob          


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题