zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: _man - small fix for manpages without section number suffix
@ 2000-07-18 10:50 Andrej Borsenkow
  2000-07-19  6:18 ` Andrej Borsenkow
  0 siblings, 1 reply; 3+ messages in thread
From: Andrej Borsenkow @ 2000-07-18 10:50 UTC (permalink / raw)
  To: ZSH workers mailing list

[-- Attachment #1: Type: text/plain, Size: 195 bytes --]

Our version of CDE installs manpages without section suffix (i.e.
/usr/dt/man/man1/dtsession.Z instead of dtsession.1.Z).

Anybody objects to the following patch?

-andrej

Have a nice DOS!
B >>

[-- Attachment #2: _man.patch --]
[-- Type: application/octet-stream, Size: 891 bytes --]

--- Completion/User/_man	Thu Jun  1 09:58:09 2000
+++ /tools/share/zsh/3.1.9-dev-3/functions/User/_man	Tue Jul 18 14:44:54 2000
@@ -30,13 +30,13 @@
 mrd=(${^manpath/\%L/${LANG:-En_US.ASCII}}/mandb(N))
 if [[ $words[2] = (<->*|1M|l|n) ]]; then
   rep=(
-  $manpath/(sman|man|cat)${words[2]}/${~approx}$PREFIX${~star}$SUFFIX.<->*(N:t) )
+  $manpath/(sman|man|cat)${words[2]}/${~approx}$PREFIX${~star}$SUFFIX.(<->*|Z)(N:t) )
   (($#mrd)) && rep[$#rep+1]=($(awk "\$2 == \"$words[2]\" {print \$1}" $mrd))
 else
-  rep=( $manpath/(sman|man|cat)*/${~approx}$PREFIX${~star}$SUFFIX.<->*(N:t) )
+  rep=( $manpath/(sman|man|cat)*/${~approx}$PREFIX${~star}$SUFFIX.(<->*|Z)(N:t) )
   (($#mrd)) && rep[$#rep+1]=($(awk '{print $1}' $mrd))
 fi
 
 
 (( $#rep )) && _wanted manuals expl 'manual page' \
-    compadd - ${rep%%.[^.]##(.gz|.bz2|)}
+    compadd - ${rep%%.[^.]##(.gz|.bz2|.Z|)}

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-07-19  8:59 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-18 10:50 PATCH: _man - small fix for manpages without section number suffix Andrej Borsenkow
2000-07-19  6:18 ` Andrej Borsenkow
2000-07-19  8:58   ` Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).