shithub: mq

Download patch

ref: f12dbfcc9869e1256f338f985ce53894fbe3dfe5
parent: 7faba15a1693856d87c099424cddf119dc4410f9
author: kvik <[email protected]>
date: Fri Sep 4 18:48:15 EDT 2020

remove attach(1) and detach(1)

--- a/rc/attach
+++ /dev/null
@@ -1,9 +1,0 @@
-#!/bin/rc -e
-rfork e
-flagfmt = ''; args = 'name'
-eval `''{aux/getflags $*} || exec aux/usage
-if(! ~ $#* 1) exec aux/usage
-
-mq = $1
-mq-cat $mq &
-exec cat >>$mq/0
--- a/rc/detach
+++ /dev/null
@@ -1,14 +1,0 @@
-#!/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