🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.folklore.computers
Article #876

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

#876
From: Geoff Clare
Date: Fri, 06 Nov 2026 13:59
86 lines
4869 bytes
Lawrence D’Oliveiro wrote:

> On Thu, 5 Nov 2026 13:53:50 +0000, Geoff Clare wrote:
> 
>> 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).
> 
> Which is not true anyway <https://manpages.debian.org/dash(1)>.

It would have been helpful if you pointed to which part of that
web page you are referring to.  I assume it is the part that says
"dash is a POSIX-compliant implementation of /bin/sh that aims to
be as small as possible".  

Notice that it says POSIX-compliant, not UNIX-compliant.

The difference, as I explained before, is that UNIX conformance
requires the POSIX "XSI Option" to be supported (and others).
One of the XSI requirements is that "echo -n foo" writes "-n foo"
and a newline.  With the built-in echo on dash (at least on Debian;
I haven't tried it on macOS) it writes just "foo" (the -n suppresses
the newline).  This is allowed for POSIX conformance, but not for
UNIX conformance.

There may well be other ways that dash does not conform to UNIX
(or indeed POSIX, despite Debian's claim) requirements too.  I seem
to remember discussions in the Austin Group about it not handling
multibyte characters correctly.

>> POSIX.1 does mention bash, in non-normative rationale, as I said
>> before.
> 
> No, you said “I think it needs to execute bash in order for the system
> to conform to UNIX03”. “Needs” is hardly “non-normative” is it?

You are mixing up two completely separate statements that I made.

"I think it needs to execute bash ..." was a statement of my opinion
regarding how macOS needs to be configured in order to conform to
UNIX03.

"POSIX.1 does mention bash, in non-normative rationale" was a statement
of fact about the POSIX.1/SUS standard (backed up with evidence).

>>> 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
> 
> These only mention macOS 26 “Tahoe”, not macOS 27 “Golden Gate”.
> Wasn’t that released several months ago? Hasn’t it passed UNIX
> compliance yet? (Or at all?)
> 
> Could that be why it was dropped from the register page?

The previous certifications for Sequoia are still listed with the
Tahoe ones on the above pages.  So regardless of what the situation
is with Golden Gate, there wouldn't be any reason to remove the
Tahoe ones from the register.

Still seems like just a glitch to me.

-- 
Geoff Clare <netnews@gclare.org.uk>
Technical Details
Message-ID: <n231sm-d23.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> <eceurm-lq4.ln1@ID-313840.user.individual.net> <11cijp9$1sunb$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: Fri, 6 Nov 2026 13:59:19 +0000
Lines: 86
Message-ID: <n231sm-d23.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>
	<eceurm-lq4.ln1@ID-313840.user.individual.net>
	<11cijp9$1sunb$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 wHQk+9uvhSmsIzY2hxQkQAtR8+X04vqX6SwXRjVRodiUBuNEDd
X-Orig-Path: ID-313840.user.individual.net!not-for-mail
Cancel-Lock: sha1:mFZYzE7muyzNS2U33adz8EelgUk= sha256:+8Gdw8dv2ZbapyoO0evJRMuvKw9RjjsQr4JgI+pFUPM=
User-Agent: Pan/0.154 (Izium; 517acf4)