Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

One thing that I’ve noticed:

On UNIX, expanding globs (*.txt) is the shell’s job.

On Windows, expanding globs is the program’s job.

I used to have a bunch of four-line Python programs to, essentially, run `flac --best --replay-gain *.wav`.




On Unix programs get arguments as array of strings. On Windows programs get command line as single string.

Strictly speaking that does not explain where globbing happens, but it does help understanding where they come from.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: