code: purgatorio

Download patch

ref: bd6c2aad586814b091ce5aca9d41cf2c51adb37b
parent: f0b565742993646ac2c7939e3a89f44c2515fbe6
author: henesy <devnull@localhost>
date: Sun Sep 27 17:47:05 EDT 2020

add g(1) ;; make gr(1) call g(1)

--- /dev/null
+++ b/dis/g
@@ -1,0 +1,3 @@
+#!/dis/sh
+
+grep -n $* /dev/null
--- a/dis/gr
+++ b/dis/gr
@@ -1,5 +1,5 @@
 #!/dis/sh
-# gr - recursive grep(1)
+# gr - recursive g(1)
 
 load expr
 load std
@@ -41,4 +41,4 @@
 	n = ${expr $n 1 +}
 }
 
-grep $opts -n $pattern `{findfiles $dirs}
+g $opts $pattern `{findfiles $dirs}