12-30-2022, 11:25 PM
The shell does what most users expect. Few people run "7z.exe" on Windows console, because it has other-wordly behavior with wildcards which is considered normal on Unix and descendants. For example, 7-Zip command-line program doesn't like "*.*", it prefers just "*" and warns about it in the manual.
Handling "*.*" especially should be to avoid system files. It should be also for reckless algorithms that expect a text file but is given a binary file instead and chokes on the multitude of ASCII0. But a program that employs such a scheme should be reserved for people who dedicate their time to breaking stuff instead of enjoying a game or a movie, accepting results of a computation, "safe and secure" for the administrator etc.
Handling "*.*" especially should be to avoid system files. It should be also for reckless algorithms that expect a text file but is given a binary file instead and chokes on the multitude of ASCII0. But a program that employs such a scheme should be reserved for people who dedicate their time to breaking stuff instead of enjoying a game or a movie, accepting results of a computation, "safe and secure" for the administrator etc.