3
0
Files in folder:
a.j
ab.jp
abc.jpg
abcd.jpeg
dir
command results:
Command Result (Files shown)
---------- --------------------
dir ?.* a.j
dir ??.* a.j, ab.jp
dir ???.* a.j, ab.jp, abc.jpg
dir ????.* a.j, ab.jp, abc.jpg, abcd.jpeg
So we can see single ?
it means "0 or 1 letter".
Now more dir
command results:
Command Result (Files shown)
---------- --------------------
dir *.? a.j
dir *.?? a.j, ab.jp
dir *.??? a.j, ab.jp, abc.jpg, abcd.jpeg --> What is this?!
dir *.???? a.j, ab.jp, abc.jpg, abcd.jpeg
In 3rd command why ???
is showing jpeg
? Can you explain? Is this bug in cmd?
3One has to ask one's self. What is more likely. A bug in a program that has not changed in functionality since it was first introduced or does one's self have a incorrect understanding how the command works? – Ramhound – 2015-05-27T19:06:19.850
@Ramhound: This might not be a bug, but surely you're not implying that cmd has no bugs? :) There are all sorts of weird edge cases and undocumented behaviour. It's old all right but barely been touched till Win10 which has added a few new cosmetic features, but I don't think the bugs have been fixed. – Karan – 2015-05-28T03:51:39.523
@Karan I never said there could be a bug just suggested not understanding how a feature worked is more likely considering command prompt has not changed in ages – Ramhound – 2015-05-28T03:57:39.283