Remix.run Logo
somat 17 hours 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

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

fiddlerwoaroof 15 hours ago | parent | next [-]

The 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`

0xbadcafebee 16 hours ago | parent | prev [-]

I 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/utiliti...)

JoshTriplett 15 hours ago | parent | next [-]

I 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 15 hours ago | parent | prev | next [-]

In a world with nix and where nearly every system has zsh, restricting yourself to the POSIX version of these tools is masochistic.

ggm 16 hours ago | parent | prev [-]

BSD vs linux with a standards committee inbetween.