From e89321a56e6d3c1559e166898510d6ddab9e6ffe Mon Sep 17 00:00:00 2001 From: rsc Date: Tue, 2 Dec 2003 21:57:32 +0000 Subject: B that knows about address syntax, change plumber to use it. --- bin/B | 6 ++++++ plumb/basic | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/bin/B b/bin/B index 74bdb48b..a8351675 100755 --- a/bin/B +++ b/bin/B @@ -22,6 +22,12 @@ else do pwd=`pwd` file=`cleanname -d $pwd $i` + line=`echo $file | sed 's/.*://'` + file=`echo $file | sed 's/:.*//'` echo "B $file" >>$sam + if [ "x$line" != "x" -a "x$line" != "x$file" ] + then + echo "$line" >> $sam + fi done fi diff --git a/plumb/basic b/plumb/basic index 514deb30..dd391698 100644 --- a/plumb/basic +++ b/plumb/basic @@ -56,7 +56,7 @@ arg isfile $1 data set $file attr add addr=$3 plumb to edit -plumb start /usr/local/plan9/bin/B $file +plumb start /usr/local/plan9/bin/B $file:$3 # plumb client window $editor # .h files are looked up in /sys/include and passed to edit @@ -66,7 +66,7 @@ arg isfile /sys/include/$1 data set $file attr add addr=$3 plumb to edit -plumb start /usr/local/plan9/bin/B $file +plumb start /usr/local/plan9/bin/B $file:$3 # plumb client window $editor # .m files are looked up in /sys/module and passed to edit @@ -76,7 +76,7 @@ arg isfile /sys/module/$1 data set $file attr add addr=$3 plumb to edit -plumb start /usr/local/plan9/bin/B $file +plumb start /usr/local/plan9/bin/B $file:$3 # plumb client window $editor # faces -> new mail window for message -- cgit v1.2.3