鉴于此片段:
exec 3>f echo foo >&3 echo bar >&3 cat f # returns foo bar
为什么 bash 附加到 f?我错过了什么吗?
io-redirection shell-script file-descriptors
file-descriptors ×1
io-redirection ×1
shell-script ×1