Re:The Poetics of CLI Command Names
by matheusmoreira on Tuesday June 09, 2020 @10:16PM
(#23473198)
GNU software names tend to have the letter G somewhere. It also shows up in GNU libraries such as GTK and glibc. They export namespaced symbols such as g_printf.
It's just like POSIX's _t suffix. It's "reserved" but in practice nobody cares.
Re:The Poetics of CLI Command Names
by senorprogrammer on Tuesday June 09, 2020 @09:11PM
(#23472798)
The author is making a joke about ‘gnu’.
As, indeed, is noted below:
> The previous bullet point was a joke.
Ah, missed that. Thanks
I guess it won't hurt to explain the joke.
The Mac has what is sometimes called a "BSD userland" with the result that cp, rm, ls, grep, etc work basically like they do on FreeBSD. But some Mac users prefer the GNU versions of those commands. To avoid breaking scripts that depend on the BSD behavior, when Homebrew installs the GNU versions, it names them gcp, grm, gls, ggrep, etc.
Not just macOS. At my first full-time job, I was introduced to Solaris. I had been using Linux for years, and been using GNU utilities for even longer (through EMX, which is like Cygwin but for OS/2). And the lack of options I was used to from the GNU versions infuriated me. They told me, "just put a g in front". Although it wasn't a standard part of Solaris install, the sysadmin had installed several of the GNU utilities (from sunfreeware.com) and they were present with that prefix.
This custom, of installing GNU utilities with a g-prefix, isn't just on macOS and Solaris, but also on other UNIX flavours as well.
Re:The Poetics of CLI Command Names
by LeoPanthera on Tuesday June 09, 2020 @09:49PM
(#23473021)
You used to be able to chose the prefix, until Homebrew removed build options.
(You still can on the BSDs.)
Re:The Poetics of CLI Command Names
by Konohamaru on Tuesday June 09, 2020 @11:47PM
(#23473702)
Look up the gnuplot name controversy to better understand what's happening here.
What?