Article View: alt.folklore.computers
Article #882Re: bash on macOS
From: Scott Lurndal
Date: Fri, 06 Nov 2026 15:42
Date: Fri, 06 Nov 2026 15:42
108 lines
5419 bytes
5419 bytes
Peter Flass <Peter@Iron-Spring.com> writes: >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:~$ There are a dozen different shells for linux. You need to be more specific about which one you are actually using. You can determine which shell you are using: $ echo $0 -ksh bash(1) by default doesn't start in posix mode: $ bash $ echo $0 bash $ set -o | grep posix posix off
Technical Details
Message-ID:
<lzmHS.316762$_pxc.180387@fx17.iad>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!npeer.as286.net!npeer-ng0.as286.net!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer04.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx17.iad.POSTED!not-for-mailReferences:
<11bujmd$31udl$1@dont-email.me> <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!npeer.as286.net!npeer-ng0.as286.net!peer01.ams1!peer.ams1.xlned.com!news.xlned.com!peer04.iad!feed-me.highwinds-media.com!news.highwinds-media.com!fx17.iad.POSTED!not-for-mail X-newsreader: xrn 9.03-beta-14-64bit Sender: scott@dragon.sl.home (Scott Lurndal) From: scott@slp53.sl.home (Scott Lurndal) Reply-To: slp53@pacbell.net Subject: Re: bash on macOS Newsgroups: alt.folklore.computers References: <11bujmd$31udl$1@dont-email.me> <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> Lines: 108 Message-ID: <lzmHS.316762$_pxc.180387@fx17.iad> X-Complaints-To: abuse@usenetserver.com NNTP-Posting-Date: Fri, 06 Nov 2026 15:42:09 UTC Organization: UsenetServer - www.usenetserver.com Date: Fri, 06 Nov 2026 15:42:09 GMT X-Received-Bytes: 5179