Follow

@sir TIL
> POSIX demands the following behavior: the first non-option stops option processing.

@minus yeah, GNU ought to burn in hell for this one. Not only is it easier to make env do the damn thing you want it to on POSIX systems, but on GNU systems you have to add an entirely separate, GNU-only flag just to get env to do its fucking job and worse still, that ends up in shebangs in scripts which means that bazillions of scripts have to either be POSIX _XOR_ GNU

@sir @minus
We attribute the "Embrace Extend Extinguish" strategy to Microsoft, but isn't it the case that GNU did it earlier than MS?

@minus @sir
Fun fact: I used to think options always need to be before positional arguments. That's what the manpages seemed to suggest in their SYNOPSIS, and that's what examples on the internet showed.

Then I accidentally added an option after a positional argument, and it worked.
WTF.

Sign in to participate in the conversation
Mastodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!