<
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
tastytea has quit [Quit: restarting for updates (via.pixie.town)]
tastytea has joined ##bash-crimes