Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I have fixed this in https://oilshell.org/ :

https://www.oilshell.org/release/0.7.pre3/doc/osh-manual.htm...

Well actually there's one more thing I want to fix:

https://github.com/oilshell/oil/issues/179

That will fix your case, because foo is a function, and the disabling of errexit in || is indeed problematic there.

Please subscribe to the bug, or feel free to e-mail at andy@oilshell.org if you want to know when it's fixed. I have another person "on the line" (author of envdir I believe) who also wants this fixed.

It would be great to have you both try this out and verify that errexit in Oil has no more pitfalls :)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: