有人能告诉我为什么这不起作用?我正在玩文件描述符,但感觉有点迷失.
#!/bin/bash echo "This" echo "is" >&2 echo "a" >&3 echo "test." >&4
前三行运行正常,但最后两行错误.为什么?
bash shell stdin stdout file-descriptor
bash ×1
file-descriptor ×1
shell ×1
stdin ×1
stdout ×1