I have a folder with 3 dummy files: ab0, ab1 and ab2.
$ echo ab* ab0 ab1 ab2 $ myvariable=ab* $ echo $myvariable ab0 ab1 ab2 $ echo 'ab*' ab*
So far, I think I understand. But:
$ myvariable='ab*' $ echo $myvariable ab0 ab1 ab2
I was expecting ab* . This means that there is a core that I do not understand.
I searched for single and double quotes, an extension, and more in bash tutorials and manuals, but I still don't understand.
bash
Diego herranz
source share