News for hackers. Stuff that matters.
Re:A peculiarity of the GNU Coreutils version of 'test' and '[' by jcelerier on Sunday November 26, 2023 @05:52AM (#38420690)
It takes a second to install gnu coreutils with homebrew and make Macs barely useable
Re:A peculiarity of the GNU Coreutils version of 'test' and '[' by emmelaich on Sunday November 26, 2023 @07:06AM (#38421005)
Or just use Perl
Re:A peculiarity of the GNU Coreutils version of 'test' and '[' by DonHopkins on Sunday November 26, 2023 @07:13AM (#38421039)
As long as you're using stone knives, might as well throw in some bear skins.

https://www.youtube.com/watch?v=F226oWBHvvI

Re:A peculiarity of the GNU Coreutils version of 'test' and '[' by emmelaich on Sunday November 26, 2023 @11:34PM (#38428092)
Fun! But honestly there's a place for Perl.

There's far less variance between Perls on different systems than there are for sed/awk/shell. So if you want performant portable code, Perl does better than all of those.

I'd never use Perl for a 'big' program these days but it still beats the crap out of the mess of sed/awk/bash/ksh/zsh.

Re:A peculiarity of the GNU Coreutils version of 'test' and '[' by freedomben on Sunday November 26, 2023 @01:43PM (#38423856)
Apple has been threatening to remove perl for ages. One of these days they'll find the "courage" to do so and we'll need a better strategy.
Re:A peculiarity of the GNU Coreutils version of 'test' and '[' by arp242 on Sunday November 26, 2023 @02:10PM (#38424062)
FreeBSD removed Perl from base ages ago, in FreeBSD 5 or 6. That went alright.

I don't even have it on my Linux system any more; for better or worse, fewer and fewer things use it.

Re:A peculiarity of the GNU Coreutils version of 'test' and '[' by dolni on Sunday November 26, 2023 @08:16PM (#38426980)
I much prefer Linux but having used Macs a few times for work, I absolutely cannot recommend making GNU coreutils the default option on Macs.

If you make GNU coreutils the first binaries in PATH, you can expect subtle, _very nasty_ issues.

The last one I encountered was `hostname` taking something like 5 seconds to run. Before that, there was some bug with GNU’s stty which I don’t remember the specifics of.