11

<(commands ...)在 bash/zsh 中,将输出行为作为文件。是否存在 POSIX 等价物?

4

1 回答 1

13
mkfifo foo.fifo

## if your "commands" is multiple commands
# { commands ...; } >foo.fifo &

# otherwise, if it's just one
commands ... >foo.fifo &

something_else foo.fifo

是最接近的等效于

something_else <( commands ... )
于 2016-08-05T19:14:41.040 回答