POSIX shell equivalent to <()

十年热恋 提交于 2019-12-04 03:06:58

问题


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


回答1:


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

is the closest available equivalent to

something_else <( commands ... )


来源:https://stackoverflow.com/questions/38796224/posix-shell-equivalent-to

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!