3 ms·
Xargs is fine, but openbsd has a -J option and every time I read the man page to figure out how to use it I read the -I and -J options and my brain glazes over.
by somat 3mo ago
Xargs is fine, but openbsd has a -J option and every time I read the man page to figure out how to use it I read the -I and -J options and my brain glazes over.
https://man.openbsd.org/xargs https://man.openbsd.org/xargs
Other brain glazing obsd wierdness is it's two argument cd command, a cryptid I am unable to wrap my head around.
https://man.openbsd.org/ksh#cd~2 https://man.openbsd.org/ksh#cd~2
- 0xbadcafebee 3mo agoI highly recommend memorizing the POSIX version of every *NIX command and sticking to them. 60% of the time, they work every time. (https://pubs.opengroup.org/onlinepubs/9799919799/idx/utilities.html https://pubs.opengroup.org/onlinepubs/9799919799/idx/utiliti...)
- ggm 3mo agoBSD vs linux with a standards committee inbetween.
- fiddlerwoaroof 3mo agoIn a world with nix and where nearly every system has zsh, restricting yourself to the POSIX version of these tools is masochistic.
- JoshTriplett 3mo agoI highly recommend using whatever capabilities are convenient of any utility you're running, and not caring about what other systems do unless you're actually trying to write a portable shell script.
- fiddlerwoaroof 3mo agoThe two arg cd is pretty useful (and, zsh implements it too because cd is a shell feature): if you have parallel directory structure (e.g. the way rails does tests) you can switch from app/b/c/d to spec/b/c/f by doing `cd app spec`