shithub: rc

Download patch

ref: 227f873058da9b5c099b6fde577d8980bad7364a
parent: e43cf78fa17316d657f580c370c4fc170337c8f9
author: qwx <qwx@sciops.net>
date: Wed Apr 6 20:40:46 EDT 2022

stealrc, lstk: we actually had our own; print acid command after trace

--- a/bin/lstk
+++ b/bin/lstk
@@ -1,10 +1,12 @@
 #!/bin/rc
-# from ori
-if(~ $#* 1)
+rfork n
+if(~ $#* 1){
 	p=$1
+	shift
+}
 if not if(~ $#* 0)
 	p=`{ps | grep Broken | awk '{print $2}' | sort -n | tail -n 1}
 if not
-	p 'usage: $0 [broken]' >[2=1]
-echo acid -l thread $p
-echo 'lstk()' | acid -l thread $p
+	p usage: $0 '[broken]' >[2=1]
+echo lstk'()' | acid -lthread $p
+echo acid -lthread $p $*(2-)
--- a/bin/stealrc
+++ b/bin/stealrc
@@ -11,7 +11,6 @@
 	$repo/qrstuv/9paste \
 	$sources/extra/ps2txt \
 	$repo/henesy/getlinks.rc \
-	$repo/ori/lstk \
 	$sources/contrib/fgb/rc/fdict \
 	$dest
 chmod +x $dest/*