Screen Link: https://app.dataquest.io/m/386/glob-patterns-and-wildcards/6/other-wildcards
What I expected to happen: List all the files and directory content with names that end in either a letter or a number.
What actually happened:
ls: cannot access *aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaalnum:
Mission reference : Glob patterns and wildcards, task 6
It seems like the online command line does not recognize shortcuts such as backslash, brackets …
Can you please share a screenshot depicting this behavior?
I typed the command mentioned above out of the command line and copy pasted it.
when I type alt-5 twice for the two first brackets this is what happens :
and at the end when typing the whole command this is what is displayed (before typing enter) :
After typing enter, this is what happens :
Sorry, I don’t understand what you did at all.
Can you share a screenshot where the whole line looks like what is below?
/home/dq/brats$ ls *[[:alnum:]]
If you can’t, why can’t you?
I cannot type it directly in the shell but I can type it outside the shell then copy paste it in the shell and it works as required.
So my problem is that I cannot type brackets " [" , " ] " directly in the shell.
PS : I had the same problem in a previous mission with “~”
Ohhh, got it.
I thought you typing in correct code and it wasn’t working. You can’t even type in the correct code.
Sorry, I don’t know how to help to that issue. I’ll loop in Sahil to try to help. CC @Sahil
Unfortunately, Alt Key is used for digit argument in bash.
Can you try changing your keyboard layout?