I am pretty new to Linux. I have Linux Mint 19.3 installed. So basically as I understand apt list
works with wildcards like *
and ?
. It works fine with most other letters and letter sequences I had tried. But when I wanted to list all Wine packages installed, I found out that my apt list
doesn't work with all combinations of letters of word "wine" and wildcards. For example: it doesn't work with "w*, wi*, win*, wine* etc". And I have other packages except wine starting with letter W. It only lists package with exact same names stated. However it seems to work when I use quotes (my apt version is < 2.0 so it seems like it treats asterisks in quotes as wildcards as well). Am I missing something, is it a bug or something else?
Edit 0: So thanks to the comments I figured out that it is because there are files in the directory the terminal was started in that start with W. But why is this and how does this work on programming level? Isn't it supposed to treat all other arguments as command's options other than filenames?
w*
,wi*
etc. will expand to that filename. Try quoting:'w*'