Article View: alt.folklore.computers
Article #886Re: bash on macOS
From: Nuno Silva
Date: Fri, 06 Nov 2026 18:16
Date: Fri, 06 Nov 2026 18:16
104 lines
5939 bytes
5939 bytes
On 2026-11-06, Peter Flass wrote: > 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:~$ This is one of the situations where it's wrong to say "Linux" and where calling it e.g. "GNU/Linux" would at least be better (although it'd *still* miss the key part here, and just get a hint of what the shell may be, if the "GNU" part isn't being used just to refer to such distributions generically). What would matter here is which shell is that and which echo is that. -- Nuno Silva
Technical Details
Message-ID:
<11cl5im$2nftp$3@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> <11ckp2g$2jqjg$2@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!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Nuno Silva <nunojsilva@invalid.invalid> Newsgroups: alt.folklore.computers Subject: Re: bash on macOS Date: Fri, 06 Nov 2026 18:16:54 +0000 Organization: A noiseless patient Spider Lines: 104 Message-ID: <11cl5im$2nftp$3@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> <11ckp2g$2jqjg$2@dont-email.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Fri, 06 Nov 2026 18:16:55 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2867129"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19CNSwtEJZdrZq1ag31Dskr"; posting-host="1449b814da4aeb4ca5bd869df13e608a" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:au9jTmj4geaud4j0cvrPBeewWUU= sha256:EqZYxbx4+/CKl8wwOQ0t1fQwiHyVYVfXGy2I1NUMQuY= sha1:9VQYyC1zkPoqaoH7DBNjk2ru9kU= sha256:VZoMOHE3BkL4Sv5ngKbW+qP6e7wt1jb6tu12tU2X8RI=