Compare renaming a file with a space in Linux and in Windows XP (last usable Windoze).
Name:
Anonymous2018-01-29 15:29
I fucking hate niggers who feel the need to implement their own broken argument parsers because of muh bloat. Nobody gives a shit if your binary is slightly larger or requires some .so, but they give a shit if your broken garbage can't handle --, doesn't respond to --help or -h and thinks -ass is a single flag.
>>14 Single letter flags are a terrible idea anyway. If your program needs to be called with flags to work at all, maybe you should split it into separate commands.
Name:
Anonymous2018-01-29 18:01
>>11 they want to feel brilliant without actually doing anything creative or original
Name:
Anonymous2018-01-29 21:36
>>9 And that reason is that the GRAND UNIX HACKERS didn't bother to distinguish between parameters and keywords, so they had to tack more in-band signalling to their in-band signalling. If only -- was at least supported everywhere.
I love my job because during downtime I can poast shit threads like this one.
Name:
Anonymous2018-01-30 15:06
I love my jobs because during downtime I can acquire dubs
Name:
Anonymous2018-01-31 8:20
>>13,19 Actually, per POSIX, ignoring -- is the special case. Utilities should respect it otherwise specified.
Just use getopt. It's easy as piss. If you can't figure it out, please stop before any innocents fall victim to your incompetence.
>>18 C programmers who don't use getopt should be gassed. There is nothing worse than having to check the source code of somebody's shitty custom parser when it fails.
Name:
Anonymous2018-01-31 8:35
>>23 Getopt is bloated. Just a single switch statement can handle most sub 8chars(uint64_t) switches.
Are you telling me UNIX System III, targeting a PDP-11, in fucking 1980, was bloated? Are you a sock puppet for Cudder by any chance?
getopt is tiny and handles... around SIZE_MAX options per argument. Stop masturbating.
Name:
>>252018-01-31 9:32
>>24 Further - do you not know that UNIX style single character options can be concatenated into a single argument, in any order? Or are you just being intentionally dense?
In any case, have fun handling all possible permutations in a single switch.
Name:
Anonymous2018-01-31 10:05
>>25,26 FYI you can make a state machine from a for loop, few gotos and a switch. No need to get bloated.
Name:
Anonymous2018-01-31 10:43
>>27 That's supposed to be less bloated than a compliant getopt? Please, I'd like to see your less bloated command line parsing.