ref: 90b1458acb65d8eecd28e49a2634a7fb783f7c2a
dir: /rc/detach/
#!/bin/rc -e rfork e flagfmt = 'c:clean'; args = 'name' eval `''{aux/getflags $*} || exec aux/usage if(! ~ $#* 1) exec aux/usage mq = $1 mkdir $mq touch $mq/^(0 1 2) echo replay on >$mq/ctl prompt=($mq'% ' ' ') rc -i <$mq/0 >>$mq/1 >>[2]$mq/2 & exec attach $mq