2 ms·
To define this behavior as "redirection" is pretty questionable from a UX perspective. This was clearly invented by someone who is so smart they don't even real
by nerdponx 5y ago
To define this behavior as "redirection" is pretty questionable from a UX perspective. This was clearly invented by someone who is so smart they don't even realize how much less smart everyone else is. That, or it was just the easiest way to do it back then...
- nerdponx 5y agoI'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.
- chubot 5y agoIt'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 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!