mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
correct sort order; do troff right
This commit is contained in:
parent
acc29ab200
commit
3844a3d978
1 changed files with 3 additions and 2 deletions
5
bin/man
5
bin/man
|
@ -81,7 +81,7 @@ while(~ $d 0) {
|
|||
shift
|
||||
}
|
||||
if not switch($1) {
|
||||
case -t ; fmt=dotroff ; shift
|
||||
case -t ; cmd=dotroff ; shift
|
||||
case -n ; cmd=donroff ; shift
|
||||
case -p ; cmd=doproof ; shift
|
||||
case -P ; cmd=dopage ; shift
|
||||
|
@ -124,7 +124,8 @@ for(word){
|
|||
}
|
||||
if(~ $#allfiles 0)
|
||||
exit 'no man'
|
||||
allfiles=`{ls $allfiles | sort -u >[2]/dev/null}
|
||||
# complicated sort order: want 9p.3, 9p-cmdbuf.3, 9pclient.3
|
||||
allfiles=`{ls $allfiles | sed 's/[.\-]/ &/g;s/\./ &/g' | sort -u | tr -d ' '}
|
||||
|
||||
files=()
|
||||
for(i in $allfiles){
|
||||
|
|
Loading…
Reference in a new issue