9front - general discussion about 9front
 help / color / mirror / Atom feed
From: stanley lieber <sl@stanleylieber.com>
To: 9front@9front.org
Subject: Fwd: [9front-commits] aiju at hg/plan9front: add Bfn script
Date: Thu, 25 Aug 2016 16:40:27 -0400	[thread overview]
Message-ID: <ce8f7516-07ef-46af-a4ad-02e96b23f181@email.android.com> (raw)
In-Reply-To: <hg.6b7a74d600f9.1472157402.-1245405291@tmove.9fs.net>

Why isn't this in /rc/bin?

sl



-------- Original Message --------
From: The Computer <commits@code.9front.org>
Sent: Thu Aug 25 16:36:42 EDT 2016
To: 9front-commits@9front.org
Subject: [9front-commits] aiju at hg/plan9front: add Bfn script

details:     http://code.9front.org/hg/plan9front/rev/6b7a74d600f9
changeset:   5447:6b7a74d600f9
user:        aiju
date:        Thu Aug 25 22:36:39 2016 +0200
description: add Bfn script


diffstat:

 bin/Bfn |  16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diffs (20 lines):

diff -r 1f23a4b8b494 -r 6b7a74d600f9 bin/Bfn
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/Bfn	Thu Aug 25 22:36:39 2016 +0200
@@ -0,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
+}



       reply	other threads:[~2016-08-25 20:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <hg.6b7a74d600f9.1472157402.-1245405291@tmove.9fs.net>
2016-08-25 20:40 ` stanley lieber [this message]
2016-08-25 20:47   ` [9front] " Benjamin Purcell
2016-08-25 21:22     ` BurnZeZ
2016-08-25 21:25       ` Benjamin Purcell
2016-08-25 22:01       ` Ethan Grammatikidis
2016-08-25 20:52   ` Julius Schmidt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ce8f7516-07ef-46af-a4ad-02e96b23f181@email.android.com \
    --to=sl@stanleylieber.com \
    --cc=9front@9front.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).