Hacker News new | ask | show | jobs
by adiabatty 547 days ago
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`.

1 comments

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.