@sir the example has two cases of "case 'c':", is this intended?

@sir I find them preferable in scripts because they self-document.

@wno @sir a common misbelief that word-like identifiers, as opposed to single letters, do, in fact, document their own semantics. 😎

@sir *slow claps* the impedance mismatch with go's defaults is cripples my unix-fu every time

@sir Only thing I don't like about POSIX getopt is that it doesn't allow option args after non-option args

@rms I appreciate that tbh, makes all commands consistent

@sir yeh, but usability wise allowing them makes more sense.
Imagine entering ls command and realizing you forgot the -l flag, fixing that would take a few extra key strokes even in vi mode.
Though I agree that we're kind of stuck with whatever is written in POSIX spec.

@rms was reminded of this conversation just now. Consider the following based on POSIX behavior:

xargs -0 rm -f

And based on your suggestion:

xargs -0 -- rm -f

@sir
Both of them works on my GNU :^)
Seriously though, I get your point. It does make things consistent, that's the whole point of having a standard.
screenshot.png

@sir I was going to look for something like this later, glad to see it pop up on my feed instead o/

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!