3 ms·
> Ironically, one of the reasons for the rise in the number of command line options is another McIlroy dictum, "Write programs to handle text streams, because t
by hulitu 5y ago
> Ironically, one of the reasons for the rise in the number of command line options is another McIlroy dictum, "Write programs to handle text streams, because that is a universal interface" (see ls for one example of this).
That is unfortunately not the reason.
There are 2 main reasons why today (GNU) command line utilities have a lot of options:
1). GNU. Apparrently they like to add features to programs
2). Herritage of SYSV/BSD. Traditionally BSD options were different from SYSV and the new GNU utilities were made to understand both.
- avgcorrection 5y agoI don’t see an argument from you that (1) wasn’t caused by the point that Luu raises. It’s not strange to end up adding features to programs if the effective IPC is so impoverished that you would need to sandwich a bunch of repetitive formatting commands if you didn’t add some convenient built-in formatting options.
- fsckboy 5y ago> 1). GNU. Apparrently they like to add features to programs unix comes out of "worse is better". GNU comes out of The Right Thing.
- seoaeu 5y agoAdding features isn't itself a bad thing. But when you cannot iterate or remove features (even the smallest change to existing functionality could break a script somewhere!) then you end up with the jumbled mess we have.