Maja changed the topic of ##bash-crimes to: we bash back | club of folks preoccupied in whether they could, not whether they should | logs https://libera.irclog.whitequark.org/~h~bash-crimes
<isabella> Pretty sure <&$fd is bourne
<isabella> I'm not sure if this is the reason but read -u is significantly more efficient than juggling fds
<isabella> read 6<&7 is roughly equivalent to: tmp = dup(6); dup2(7, 6); read(6, buf, size); dup2(tmp, 6); close(tmp)
<isabella> I guess the main reason is that it's a very simple improvement
<isabella> Bash almost never does any kind of performance-conscious changes but read -u is from ksh
<isabella> Incidentally, I looked up the docs, and I found out that the option is -u because ksh88 called it file descriptor *unit*
<isabella> I've never seen it called unit anywhere else in unix
<isabella> ooooh i found it
<isabella> ksh86 had read -u and it printed the prompt to that fd if it was a terminal
<isabella> Maja: ^
tastytea has quit [Quit: restarting for updates (via.pixie.town)]
tastytea has joined ##bash-crimes
<jn> after seeing https://dmitry.gr/?r=05.Projects&proj=35.%20Linux4004 i'm convinced one could boot linux in bash, and it wouldn't be all that unreasonable in comparison