zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: _man for Pyramid broken - and question about backslash in ${.../...}
@ 2000-05-30 12:59 Andrej Borsenkow
  0 siblings, 0 replies; only message in thread
From: Andrej Borsenkow @ 2000-05-30 12:59 UTC (permalink / raw)
  To: ZSH workers mailing list

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


The change in `%' treatment broke _man completion for Pyramid. The fix
is triovial (attached because of line length), but I have different
question:

what is the "canonical" treatment of backslashes in pattern? I would
expected, that the original form should work:

$manpath/\\%L/...} - this gets passed as `\%L' pattern that is finally
the same as just '%L'? Obviously, not.

A line in manual, describing what happens with backslashes, is welcome
:-)

-andrej

Have a nice DOS!
B >>

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

--- Completion/User/_man	Wed Apr 12 21:12:55 2000
+++ /tools/share/zsh/3.1.7/functions/User/_man	Tue May 30 16:50:19 2000
@@ -27,7 +27,7 @@
 # `sman' is the SGML manual directory for Solaris 7.
 # 1M is system administrator commands on SVR4
 
-mrd=(${^manpath/\\%L/${LANG:-En_US.ASCII}}/mandb(N))
+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) )

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-05-30 12:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-05-30 12:59 PATCH: _man for Pyramid broken - and question about backslash in ${.../...} Andrej Borsenkow

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).