Deutsch   English   Français   Italiano  
<20241224133404.617@kylheku.com>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Kaz Kylheku <643-408-1753@kylheku.com>
Newsgroups: comp.unix.shell
Subject: Re: a sed question
Date: Tue, 24 Dec 2024 21:46:56 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 39
Message-ID: <20241224133404.617@kylheku.com>
References: <874j304vv3.fsf@example.com> <vk6if0$2n5s$1@dont-email.me>
 <vk7ar2$7g01$4@dont-email.me> <vkbodn$17hej$1@dont-email.me>
 <vkcpt2$1dp54$7@dont-email.me> <vke8u3$1rdnq$1@dont-email.me>
 <vkf788$2130s$5@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 24 Dec 2024 22:46:56 +0100 (CET)
Injection-Info: dont-email.me; posting-host="b4d3f8a7043ba28d4466580c3b0f5c3d";
	logging-data="2148661"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18vTo+MDoJDgHCQNMbfAOnTEXGHetFGG4M="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:LAWUtNR6xLaPsJqSQ7DAOOmWPcM=
Bytes: 2633

On 2024-12-24, Lawrence D'Oliveiro <ldo@nz.invalid> wrote:
> On Tue, 24 Dec 2024 06:20:18 -0600, Ed Morton wrote:
>
>> Is perl a mandatory POSIX tool? No.
>
> Nobody cares.

That is a false. Enough vendors and system integrators care that you
can hardly log into any Linux box that doesn't have some kind of awk.
Even small IoT devices or consumer routers.

(If it doesn't have Awk, it's almost certainly not going to have Perl.)

The BusyBox project, a popular project that provides userland utilities
for small systems packaged into a single executable, has its own BusyBox
Awk, which is how a good many small embedded systems get their Awk.

BusyBox Awk is implemented in one 100,000 character source file
(that probably relies on some BusyBox library infrastructure.)

There is no BuxyBox Perl and likely won't be any time soon.

> POSIX compliance is just a means to an end not an end in 
> itself. Linux pays attention to POSIX where it matters, and ignores it 
> where it doesn’t.

That is true, but one area where it matters is in having Awk on a
system, so that shell scripts which rely on Awk do not break.

> This is one case where it doesn’t.

That is nothing but a statement of your personal preference or wishful
thinking, not reflecting the facts of the world at large: as in,
what is widely deployed out there and can be counted on.

-- 
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca