POSIX shell equivalent to <()

前端 未结 1 763
名媛妹妹
名媛妹妹 2020-12-19 02:39

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

相关标签:
1条回答
  • 2020-12-19 03:34
    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 ... )
    
    0 讨论(0)
提交回复
热议问题