B that knows about address syntax,
change plumber to use it.
This commit is contained in:
6
bin/B
6
bin/B
@@ -22,6 +22,12 @@ else
|
|||||||
do
|
do
|
||||||
pwd=`pwd`
|
pwd=`pwd`
|
||||||
file=`cleanname -d $pwd $i`
|
file=`cleanname -d $pwd $i`
|
||||||
|
line=`echo $file | sed 's/.*://'`
|
||||||
|
file=`echo $file | sed 's/:.*//'`
|
||||||
echo "B $file" >>$sam
|
echo "B $file" >>$sam
|
||||||
|
if [ "x$line" != "x" -a "x$line" != "x$file" ]
|
||||||
|
then
|
||||||
|
echo "$line" >> $sam
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ arg isfile $1
|
|||||||
data set $file
|
data set $file
|
||||||
attr add addr=$3
|
attr add addr=$3
|
||||||
plumb to edit
|
plumb to edit
|
||||||
plumb start /usr/local/plan9/bin/B $file
|
plumb start /usr/local/plan9/bin/B $file:$3
|
||||||
# plumb client window $editor
|
# plumb client window $editor
|
||||||
|
|
||||||
# .h files are looked up in /sys/include and passed to edit
|
# .h files are looked up in /sys/include and passed to edit
|
||||||
@@ -66,7 +66,7 @@ arg isfile /sys/include/$1
|
|||||||
data set $file
|
data set $file
|
||||||
attr add addr=$3
|
attr add addr=$3
|
||||||
plumb to edit
|
plumb to edit
|
||||||
plumb start /usr/local/plan9/bin/B $file
|
plumb start /usr/local/plan9/bin/B $file:$3
|
||||||
# plumb client window $editor
|
# plumb client window $editor
|
||||||
|
|
||||||
# .m files are looked up in /sys/module and passed to edit
|
# .m files are looked up in /sys/module and passed to edit
|
||||||
@@ -76,7 +76,7 @@ arg isfile /sys/module/$1
|
|||||||
data set $file
|
data set $file
|
||||||
attr add addr=$3
|
attr add addr=$3
|
||||||
plumb to edit
|
plumb to edit
|
||||||
plumb start /usr/local/plan9/bin/B $file
|
plumb start /usr/local/plan9/bin/B $file:$3
|
||||||
# plumb client window $editor
|
# plumb client window $editor
|
||||||
|
|
||||||
# faces -> new mail window for message
|
# faces -> new mail window for message
|
||||||
|
|||||||
Reference in New Issue
Block a user