POSIX shell equivalent to <()

<(commands ...)in bash / zsh makes the output behavior as a file. Is there a POSIX equivalent?

+4
source share
1 answer
mkfifo foo.fifo

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

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

something_else foo.fifo

- nearest available equivalent

something_else <( commands ... )
+10
source

Source: https://habr.com/ru/post/1650352/


All Articles