Article View: alt.folklore.computers
Article #878Re: bash on macOS
From: Peter Flass
Date: Fri, 06 Nov 2026 14:43
Date: Fri, 06 Nov 2026 14:43
91 lines
5447 bytes
5447 bytes
On 11/6/26 06:59, Geoff Clare wrote: > 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. > Linux: isdev@pingvin:~$ echo foo foo isdev@pingvin:~$ echo -n foo fooisdev@pingvin:~$
Technical Details
Message-ID:
<11ckp2g$2jqjg$2@dont-email.me>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<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> <n231sm-d23.ln1@ID-313840.user.individual.net>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Peter Flass <Peter@Iron-Spring.com> Newsgroups: alt.folklore.computers Subject: Re: bash on macOS Date: Fri, 6 Nov 2026 07:43:28 -0700 Organization: A noiseless patient Spider Lines: 91 Message-ID: <11ckp2g$2jqjg$2@dont-email.me> 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> <n231sm-d23.ln1@ID-313840.user.individual.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 06 Nov 2026 14:43:29 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2746992"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+Rs2Xec2h1455Ze1kmFKu3"; posting-host="81a2cf52ae39f53c2e2a541af18f83a7" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:4FkOvHTg4yzq9RnNwBUYbJVrk2k= sha256:eXdL09PLsaDM5mO8EH/UAVpz1skF8iPOIGxSy6bU0MA= sha1:FseN7dLqjE3RhM//SZ9uaZYMm2k= sha256:wqPMweMJQiOyBCNvPa/8lHJJJpZys1L45prwCYAaumg= In-Reply-To: <n231sm-d23.ln1@ID-313840.user.individual.net> Content-Language: en-US