shithub: riscv

Download patch

ref: 81b1fc5a1268bca74e854ebe4850c0c1b8b69ff3
parent: 1f441308e9a8981bedbe5ce16a9c97145bd6bc96
author: aiju <[email protected]>
date: Thu Aug 25 19:03:54 EDT 2016

fix Bfn botch

--- a/bin/Bfn
+++ /dev/null
@@ -1,16 +1,0 @@
-#!/bin/rc
-if(! ~ $#* 1){
-	echo usage: $0 fn >[2=1]
-	exit usage
-}
-res=`{grep -n '^'$1'\(' *.c | sed -n 's/^([^:]*:[^:]*).*$/\1/gp' }
-ifs='
-'
-for(i in $res)
-	echo $i
-switch($#res){
-case 0
-	echo $1: not found >[2=1]
-case 1
-	plumb $res
-}
--- /dev/null
+++ b/rc/bin/Bfn
@@ -1,0 +1,16 @@
+#!/bin/rc
+if(! ~ $#* 1){
+	echo usage: $0 fn >[2=1]
+	exit usage
+}
+res=`{grep -n '^'$1'\(' *.c | sed -n 's/^([^:]*:[^:]*).*$/\1/gp' }
+ifs='
+'
+for(i in $res)
+	echo $i
+switch($#res){
+case 0
+	echo $1: not found >[2=1]
+case 1
+	plumb $res
+}