ref: 02ce9b85e1a75ace6e7a9b78bb5533b9d4f8569d
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