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

I'm curious why my post was downvoted. If there are people out there who think that file descriptor duplication is intuitive behavior for shell redirection, I would love to hear about it! I don't learn anything from silent downvotes.


It's not intuitive, but it was easy to implement :) There are a lot of things in Unix and Unix shell like that.

I learned that parsing here docs is another one of them! It's a weird syntax, and I came up with something clever for parsing it. And then I realized there is a simple algorithm that kind of "falls out" of the AST.

https://www.oilshell.org/blog/2016/10/17.html

The famous "worse is better" essay on Unix talks about implementation simplicity vs. interface simplicity. Unix favors implementation simplicity!




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

Search: