# list=(`echo ".*"`)
# for item in ${list[@]}; do echo "$item"; done;
.
..
.DS_Store
.git
.gitignore
.tox
.toxrc
In the code above, I tried to write a string with .*
into an array in bash, but after doing that, the ".*" will be converted to a full file/dir list in current dir.
How can I stop bash from doing that?
*
to be expanded. What is the expected output that you want returned? – Nasir Riley Jun 13 '18 at 12:08