Article View: alt.folklore.computers
Article #884Re: bash on macOS
From: Peter Flass
Date: Fri, 06 Nov 2026 17:48
Date: Fri, 06 Nov 2026 17:48
111 lines
6003 bytes
6003 bytes
On 11/6/26 08:42, Scott Lurndal wrote: > 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 bash.
Technical Details
Message-ID:
<11cl3so$2ofmm$1@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> <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> <lzmHS.316762$_pxc.180387@fx17.iad>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 10:48:08 -0700 Organization: A noiseless patient Spider Lines: 111 Message-ID: <11cl3so$2ofmm$1@dont-email.me> 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> <lzmHS.316762$_pxc.180387@fx17.iad> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 06 Nov 2026 17:48:09 +0000 (UTC) Injection-Info: dont-email.me; logging-data="2899670"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Xck/E3Os39vU9E88J+2u7"; posting-host="81a2cf52ae39f53c2e2a541af18f83a7" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:ywW8B8fCdzpyK+NB7BNasBumQ2U= sha256:FDoafNvyS5EeUZCX9N8sErkF91gk9H/5zcK+9czsJ94= sha1:Z9ReJxodMYpsHPpoXFXQClF3CwE= sha256:CHMBUNYKnQ5fNyehXqyKsbQQ3QoIIcnzyDwQLEZQicQ= Content-Language: en-US In-Reply-To: <lzmHS.316762$_pxc.180387@fx17.iad>