Re:The Bourne shell lets you set variables in if expressions
by chubot on Saturday May 15, 2021 @12:41PM
(#27166731)
Yes, Oil fixes this with strict_errexit:
sibling comment: https://news.ycombinator.com/item?id=27166719
blog post: https://www.oilshell.org/blog/2020/10/osh-features.html
It needs some official documentation, but if you download Oil and see any other problems I'm interested! I think I fixed all of them.
Even worse, you can add the line “set -e” inside the function explicitly re-enabling it and it still won’t change the outcome because errexit wasn’t technically unset!