等同于<()的POSIX shell [英] POSIX shell equivalent to <()

查看:92
本文介绍了等同于<()的POSIX shell的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

<(commands ...)使输出行为成为文件. POSIX是否存在?

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

推荐答案

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 ... )

这篇关于等同于&lt;()的POSIX shell的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆