When I am assigning .* to a variable , it is assigning all hidden files.
[root@s1 ~]# a=".*"
[root@s1 ~]# echo $a
. .. .bash_history .bash_logout .bash_profile .bashrc .cache .config .cshrc .history .lesshst .mozilla .pki .rnd .ssh .tcshrc .viminfo .virsh .xauth6SHzeY .xauthhAVYfm .xauthI6Cte3 .xauthk7ea35 .xauthlXtiZ9 .Xauthority .xauthQm7mJ8 .xauthTpWbxP .xauthY9KsdC
I expect below output :
.*
How to escape it, thanks.
I tried below and it gives output
[root@s1 ~]# a='".*"'
[root@s1 ~]# echo $a
".*"
".*"
but not
.*