Instead of using, lsuse shell pattern matching:
for i in .* ; do echo $i; done;
If you want all files, hidden and normal, to execute:
for i in * .* ; do echo $i; done;
( , . .., , , , , () , * .*)
bash , , dotglob nullglob. dotglob * ( . ..), nullglob *, . :
shopt -s dotglob nullglob
for i in * ; do echo $i; done;