aboutsummaryrefslogtreecommitdiff
path: root/bin/man
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-13 04:49:19 +0000
committerrsc <devnull@localhost>2005-01-13 04:49:19 +0000
commitc8b6342d3c2a167dec16931815926e9e4387e7ef (patch)
tree80d3ec6ea074462b30639168113def880476dad6 /bin/man
parent741f510ce758f77ed5193256fb693a09a7daecce (diff)
downloadplan9port-c8b6342d3c2a167dec16931815926e9e4387e7ef.tar.gz
plan9port-c8b6342d3c2a167dec16931815926e9e4387e7ef.tar.bz2
plan9port-c8b6342d3c2a167dec16931815926e9e4387e7ef.zip
Many small edits.
Diffstat (limited to 'bin/man')
-rwxr-xr-xbin/man12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/man b/bin/man
index 8b5e9747..f11fd04d 100755
--- a/bin/man
+++ b/bin/man
@@ -60,11 +60,11 @@ if(~ $#sec 0) {
}
ix=$S/man$sec/INDEX
if(~ $#* 1) pat='^'^$1^' '
-if not pat='^('^`{echo $* | 9sed 's/ /|/g'}^') '
+if not pat='^('^`{echo $* | 9 sed 's/ /|/g'}^') '
fils=()
for(i in $S/man$sec){
- if(/bin/test -f $i/INDEX){
- try=`{grep $pat $i/INDEX | 9sed 's/^[^ ]* //'}
+ if(test -f $i/INDEX){
+ try=`{grep $pat $i/INDEX | 9 sed 's/^[^ ]* //'}
if(! ~ $#try 0)
fils=($fils $i/$try)
}
@@ -75,7 +75,7 @@ if(~ $#fils 0) {
for(i) {
for(n in $sec) {
try=$S/man$n/$i.$n*
- if (/bin/test -f $try)
+ if (test -f $try)
fils=($fils $try)
}
}
@@ -85,7 +85,7 @@ if(~ $#fils 0) {
}
}
for(i in $fils) {
- if(! /bin/test -f $i)
+ if(! test -f $i)
echo need $i >[1=2]
if not {
switch($cmd) {
@@ -99,7 +99,7 @@ for(i in $fils) {
roff t $i |tr2post |psfonts |page
case n
- roff n $i | 9sed '
+ roff n $i | 9 sed '
${
/^$/p
}