🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.folklore.computers
Article #822

Re: bash on macOS (was: Emacs Turns 50)

#822
From: Geoff Clare
Date: Thu, 05 Nov 2026 13:53
89 lines
4677 bytes
Lawrence D’Oliveiro wrote:

> On Wed, 4 Nov 2026 14:00:15 +0000, Geoff Clare wrote:
> 
>> Lawrence D’Oliveiro wrote:
>>
>>> On Tue, 3 Nov 2026 13:17:46 +0000, Geoff Clare wrote:
>>>
>>>> Lawrence D’Oliveiro wrote:
>>>>
>>>>> Then why mention bash specifically in the requirements?
>>>>
>>>> Bash is not mentioned specifically in UNIX03 / SUSv3 requirements.
>>>> (It is mentioned in non-normative rationale, as is ksh.)
>>>
>>> Then why did you say “I think it needs to execute bash in order for
>>> the system to conform to UNIX03”? You were the one who mentioned bash
>>> specifically.
>>
>> I already explained that earlier in the thread ...
> 
> You mean, the part where you started talking about ksh as well?

No, before that.  From my post on Fri, 30 Oct 2026 13:26:19 +0000:

    My point was that of the shells that /bin/sh can be configured to
    execute (bash, dash and zsh), bash conforms to UNIX03 but I don't
    think dash and zsh do. So if you want conforming behaviour you have
    to stick with the default configuration (bash).

>>>> You do know that POSIX.1 and (the Base volumes of) SUS are one and
>>>> the same standard, right?
>>>
>>> If the two specs were one and the same, there would not be separate
>>> certification for both.
>>
>> They *are* one and the same ...
> 
> Well, POSIX doesn’t mention bash, so why should SUS?

POSIX.1 does mention bash, in non-normative rationale, as I said before.
It's not possible for POSIX.1 and (the Base volumes of) SUS to say
different things, as they are one and the same standard.

I just searched the PDF of IEEE Std. 1003.1-2024 for "bash" and the first
hit is on page 3868, from some text in XRAT C.2.2.4 Dollar-Single-Quotes
that explains how escape sequences in C string literals compare to their
use in $'...' in the shell:

    The \x escape sequence in C can be followed by an arbitrary number
    of hexadecimal digits. The ksh93 implementation of $'...' also
    consumes an arbitrary number of hexadecimal digits; bash consumes
    at most two hexadecimal digits in this case. This standard leaves
    the result unspecified if more than two hexadecimal digits follow \x.

The same text can be found in SUSv5 here:

https://pubs.opengroup.org/onlinepubs/9799919799/xrat/V4_xcu_chap01.html#tag_23_02_02_04

> I just rechecked the compliance register for UNIX v03
> 
> <https://www.opengroup.org//openbrand/register/xy.htm>
> 
> You’ll notice Apple is no longer listed ...

That's strange.  Looks like a glitch on their web site, as it's
only missing from the "umbrella" UNIX03 product standard listing;
it's still there for the individual product standards that comprise
UNIX03:

    Internationalized System Calls and Libraries Extd V3
    https://www.opengroup.org/openbrand/register/sd.htm

    Commands and Utilities V4
    https://www.opengroup.org/openbrand/register/cx.htm

    C Language V2
    https://www.opengroup.org/openbrand/register/lm.htm

    Internationalized Terminal Interfaces
    https://www.opengroup.org/openbrand/register/uu.htm

and all of those plus the UNIX03 umbrella one are listed on the page
for Apple's certifications:

https://www.opengroup.org/openbrand/register/apple.htm

-- 
Geoff Clare <netnews@gclare.org.uk>
Technical Details
Message-ID: <eceurm-lq4.ln1@ID-313840.user.individual.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
References: <11bujmd$31udl$1@dont-email.me> <rl3crm-qfh.ln1@ID-313840.user.individual.net> <11c0jnp$3q5il$1@dont-email.me> <rgierm-fmf.ln1@ID-313840.user.individual.net> <11c366q$lfc1$2@dont-email.me> <6pfmrm-l8a.ln1@ID-313840.user.individual.net> <11caqn1$36bpo$2@dont-email.me> <qg3prm-ql7.ln1@ID-313840.user.individual.net> <11cdgp6$46jl$5@dont-email.me> <fcqrrm-5o6.ln1@ID-313840.user.individual.net> <11cg8q2$12d33$1@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: Geoff Clare <geoff@clare.See-My-Signature.invalid>
Newsgroups: alt.folklore.computers
Subject: Re: bash on macOS (was: Emacs Turns 50)
Date: Thu, 5 Nov 2026 13:53:50 +0000
Lines: 89
Message-ID: <eceurm-lq4.ln1@ID-313840.user.individual.net>
References: <11bujmd$31udl$1@dont-email.me>
	<rl3crm-qfh.ln1@ID-313840.user.individual.net>
	<11c0jnp$3q5il$1@dont-email.me>
	<rgierm-fmf.ln1@ID-313840.user.individual.net>
	<11c366q$lfc1$2@dont-email.me>
	<6pfmrm-l8a.ln1@ID-313840.user.individual.net>
	<11caqn1$36bpo$2@dont-email.me>
	<qg3prm-ql7.ln1@ID-313840.user.individual.net>
	<11cdgp6$46jl$5@dont-email.me>
	<fcqrrm-5o6.ln1@ID-313840.user.individual.net>
	<11cg8q2$12d33$1@dont-email.me>
Reply-To: netnews@gclare.org.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net EGwKQooDDXcu9YGE59ImzwQDq9x/zJYVpaGyIvXrfcXfNyKiYQ
X-Orig-Path: ID-313840.user.individual.net!not-for-mail
Cancel-Lock: sha1:V8vXwraWKL2Fam6IBni5h4LblM4= sha256:LzMkXQP/ivwvV9DDQYSNTcLu8ewYrxKXHS397mHRzZ8=
User-Agent: Pan/0.154 (Izium; 517acf4)