On Fri, May 8, 2026 at 7:36 PM Anthony Martin <[email protected]> wrote:
> Yaroslav <[email protected]> once said:
> > 2. The use of ifs. You're correct in your suspicion that it may not be
> > a straightforward replacement, and it wasn't. In fact, being aware of
> > its intricacies, the largest body of work on this port I spent on was
> > evaluating the effect of each such replacement on a case by case
> > basis. I believe the ifs overrides I ended up putting forward all work
> > as intended.
>
> The special splitting version of the backquote construct
>
> w = ` $split {cmds}
>
> is equivalent to
>
> oifs=$ifs ifs=$split {
> w = `{ifs=$oifs oifs=() cmds}
> }
>
> but much more convenient.
>
> It was added to 9atom in 2011, 9front in 2016, and plan9port
> in 2025. At this point, 9legacy should just incorporate it.
>
> It also gets close to my preferred syntax for no word splitting
> at all: "{} from Inferno's sh becomes `''{}.
Yes. The real solution for most of these differences is to simply
import the 9front version into 9legacy. I suspect this hasn't happened
mostly because of time and energy.
- Dan C.
------------------------------------------
9fans: 9fans
Permalink:
https://9fans.topicbox.com/groups/9fans/Td167d7e8cebadcc4-M19f3039ad4cfcf409dfaef0f
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription