commit - 3a9ee6351914b85db336d51b0e450f954d37d7a6
commit + 9bbe4594efec95643a61272e718da8d7dcd16a25
blob - 5b8391793a468dba06edbe86daf4c80442210d9c
blob + 178d8dc90eec7fe36a2e9def635257aabb89f153
--- bin/Getdir
+++ bin/Getdir
# Click on an acme directory window and then execute Getdir
+. 9.rc
dir=acme/acme/$winid
fn rd {
echo -n , | wr addr
ls -pF $tag(1) | sed 's/\*$//' |
- 9grep -v '^''?\.|\.o$|^''?o\.' |
+ grep -v '^''?\.|\.o$|^''?o\.' |
mc | wr data
echo -n '#0' | wr addr
echo -n 'dot=addr' | wr ctl
blob - 322728447ae55f9bde45bc2c01da3a9fb5b44ddd
blob + c744c56044b70bb2a9ff294a32789d6a21a25ab5
--- bin/adict
+++ bin/adict
#!/usr/local/plan9/bin/rc
+. 9.rc
. $PLAN9/lib/acme.rc
fn event {
blob - e36c3caf56eedf037be74e200a58bc98d9b35f9e
blob + 05e3cba4424d079bf711bcf9ff68efe9a4162ca7
--- bin/doctype
+++ bin/doctype
# doctype: synthesize proper command line for troff
+. 9.rc
+
troff=troff
eqn=eqn
prefer=prefer
'{
files=`{echo $*}
}
-9 grep -h '\$LIST|\|reference|^\.(EQ|TS|\[|PS|IS|GS|G1|GD|PP|BM|LP|BP|PI|cstart|begin|TH...)|^\.P$' $* |
+grep -h '\$LIST|\|reference|^\.(EQ|TS|\[|PS|IS|GS|G1|GD|PP|BM|LP|BP|PI|cstart|begin|TH...)|^\.P$' $* |
sort -u |
awk '
BEGIN { files = "'$files'" }
blob - 35c74e0e9a7887009b1c1f60406220dcb3be41f5
blob + 8a29bb9430316a36f13ffe5fcb89a0e577687b86
--- bin/lookman
+++ bin/lookman
#!/usr/local/plan9/bin/rc
+
+. 9.rc
+
# Usage: lookman key ...
# prints out the names of all manual pages containing all the given keywords
index=$PLAN9/man/lookman.index
blob - b2f797f321ca6cc995d60536443b76a9d92f9f0f
blob + 0db15f30d53e4c2519c06d75e3feedf1f2ca5b8b
--- bin/sig
+++ bin/sig
# Usage: sig key ...
# prints out function signatures by grepping the manual
-
+. 9.rc
*=`{echo $*|tr A-Z a-z|tr -dc 'a-z0-9_ \012'} # fold case, delete funny chars
if(~ $#* 0){
echo Usage: sig function ... >[1=2]
}
for (i) {
- files=`{9 grep -il '[ ]\*?'$i'\(' $PLAN9/man/man3/*.3*}
+ files=`{grep -il '[ ]\*?'$i'\(' $PLAN9/man/man3/*.3*}
for(j in $files) {
{echo .nr LL 20i; 9 sed -n '/^.SH SYNOPSIS/,/^.SH.*DESCR/p' $j } |
- 9 nroff -man |
- 9 sed '
+ nroff -man |
+ sed '
:a
/,$/ {
N
}
ta
s/[ ]+/ /g' |
- 9 grep -i -e '[ ]\*?'$i'\(' | sed 's/^[ +]/ /'
+ grep -i -e '[ ]\*?'$i'\(' | sed 's/^[ +]/ /'
}
}
blob - 3a6b4a3e707d4986cf34ef203f383975bf569140
blob + eea05ca4340f5778049991696bece01c9ddcafaf
--- bin/spell
+++ bin/spell
#!/usr/local/plan9/bin/rc
+. 9.rc
spellflags=()
deroffargs=()
fflag=''
blob - c9dcdec4908da352fc847c7a8b1243ed35d97a49
blob + 3fb749a7977c1bd9c058e959a542598defb942b3
--- bin/src
+++ bin/src
#!/usr/local/plan9/bin/rc
+. 9.rc
sym = 'threadmain?z
p9main?z
main?z'