| ▲ | NekkoDroid 3 hours ago | |
The simple fact that POSIX doesn't define any long options for basically any CLI tools just makes me outright ignore it when writing scripts. I use long options in scripts so that you can actually understand which options are used. Short options are for interactive shells since those commands nobody is really gonna look at again. | ||
| ▲ | gaigalas 2 hours ago | parent [-] | |
That is another can of worms. For now, I'm worried only about the shell interpreter and builtins. `echo` in most shells is not `/bin/echo`, it's actually an internal implementation (external echo means forking at every output, which is super slow). The portability of other cor utils is also a clown fiesta, and most likely the best solution for now is "use gnu", which sometimes feels like "best viewed in internet explorer"-era shinenigans. | ||