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: smallm at sdf.org (Mike Small)
- Date: Thu, 07 Jun 2018 16:45:06 +0000
- In-reply-to: <a5e8dbd4-41da-6ab3-022c-a0c46b000088@gmail.com> (Richard Pieri's message of "Sat, 2 Jun 2018 12:47:23 -0400")
- References: <20180602164200.GA11279@arcturas.localdomain> <a5e8dbd4-41da-6ab3-022c-a0c46b000088@gmail.com>
Richard Pieri <richard.pieri at gmail.com> writes: > On 6/2/2018 12:42 PM, dan moylan wrote: >> not portable? where would that be? > > Not portable in that "[[" is specific to Bash. You may not find it in > other Bourne-derived shells. ksh, either the real thing or one of the pdksh derived ones, has it the same way. I'm starting to get the impression that some large number of what people call bashisms come from David Korn (the feature not the implemention). I was reading a book of his and he actually deprecates [ in favour of [[, mostly because, as I think you implied further up, [[ is syntax and [ just a command, so [[ ]] avoids that awful kind of error you'll get when a variable is empty and you use it in a comparison without the idiomatic hack to make sure an operand doesn't become . 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?" -- Mike Small smallm at sdf.org
- Follow-Ups:
- [Discuss] through the looking glass
- From: invalid at pizzashack.org (Derek Martin)
- [Discuss] through the looking glass
- 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
- Prev by Date: [Discuss] Surge Protection
- Next by Date: [Discuss] through the looking glass
- Previous by thread: [Discuss] through the looking glass
- Next by thread: [Discuss] through the looking glass
- Index(es):