I have been looking for this question everywhere, but I didn't find it and there doesn't seem to be any kind of answer yet to my current problem, which, frankly, doesn't even make sense.
So, what I want to do is escape the question mark ? in my variable declaration. Obviously writing
won't do it. Of course, you would then use backslash along with the question mark to solve the problem, usually:
However: This doesn't work (but it actually should). When echoing the variable, it actually outputs:
5 A X
(these are three folders in my home directory) Then I noticed this happened when I was in my home directory, or in a directory like root (where I have the folders A, B and C). So, I changed cwd to to an empty, newly created directory and suddenly it worked. What exactly could be the cause of this? It only seems to happen with one letter folder names, but I thought this isn't supposed to happen since I escape the question mark with \?