BLU Discuss list archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss] through the looking glass
- Subject: [Discuss] through the looking glass
- From: invalid at pizzashack.org (Derek Martin)
- Date: Thu, 7 Jun 2018 13:53:40 -0500
- In-reply-to: <chxwovar1f1.fsf@sdf.org>
- References: <20180602164200.GA11279@arcturas.localdomain> <a5e8dbd4-41da-6ab3-022c-a0c46b000088@gmail.com> <chxwovar1f1.fsf@sdf.org>
On Thu, Jun 07, 2018 at 04:45:06PM +0000, Mike Small wrote: > Which are the the shells that don't give you [[? Looks like dash > doesn't have it, from the man page (so ash too I assume). What's the > expression, "posix me harder?" The actual Bourne shell does not have it, nor do ash or dash (which are basically the same shell, but IIRC dash has some few debian-specific changes). IIRC, Solaris 10 and earlier ship with a /bin/sh that is closest to the Bourne shell rather than the current spec of "POSIX" shell, and thus also do not have it. HP-UX prior to 10.x does not have it, and I'm not sure about the POSIX shell that ships with 10.x or later. This list is not complete, though most of the other entries would be for even more outdated platforms (where /bin/sh is either exactly, or most similar to, the original Bourne shell). There were multiple releases of the Korn shell, notably ksh88 and ksh93. The former is slightly more Bourne-like, the latter is slightly more Bash-like, but I used either only exceedingly rarely and I'mm unsure which features are in one and not the other. There are still at least some Bashisms that are truly unique to Bash, though some bashisms have been copied by other shells. If you need to write portable shell scripts, it is still safest to limit yourself to original Bourne syntax. Even as recently as last month, for example, Mutt's build environment had bugs on multiple systems because it had been modified to use Bash-specific or newer POSIX features, and the shells on those systms lacked those features (Solaris 10 in particular is a frequent pain point, but IIRC it is not alone). -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02 -=-=-=-=- This message is posted from an invalid address. Replying to it will result in undeliverable mail due to spam prevention. Sorry for the inconvenience.
- References:
- [Discuss] through the looking glass
- From: jdm at moylan.us (dan moylan)
- [Discuss] through the looking glass
- From: richard.pieri at gmail.com (Richard Pieri)
- [Discuss] through the looking glass
- From: smallm at sdf.org (Mike Small)
- [Discuss] through the looking glass
- Prev by Date: [Discuss] through the looking glass
- Next by Date: [Discuss] Fwd: [Ietf-hub-boston] Meeting SOON: June 12 5-7pm at Volta Networks (Central Square)
- Previous by thread: [Discuss] through the looking glass
- Next by thread: [Discuss] through the looking glass
- Index(es):