exec
sh
# 定义描述符
exec 4</tmp/file.in
exec 5>/tmp/file.in
exec 6<>/tmp/file.in.out
exec >&5
echo "Enter"
exec 2>&5
ls xxxx
# 关闭描述符
exec 4<&-
exec 5>&-