bash: How do I ensure termination of process substitution used with exec?

前端 未结 5 844
时光说笑
时光说笑 2021-01-06 08:48

If I run

$#/bin/bash
for i in `seq 5`; do
    exec 3> >(sed -e \"s/^/$i: /\"; echo \"$i-\")
    echo foo >&3
    echo bar >&3
    exec 3&         


        
5条回答
提交回复
热议问题