I was playing around with expansion, and I noticed a peculiar behavior. I tried doing:
And I didn't have any .txt file in my current directory. The output I got was:
I'm just curious: Why did I get this? I was expecting to not get any output.
PS: When I did have a
.txt file, the expansion was correctly interpreted. In other words, say I had a file,
smthn.txt, the echo actually echoed