From: pollux <duret_g@epita.fr>
To: zsh-workers@sunsite.auc.dk
Subject: _a2ps completion is broken
Date: 29 Sep 1999 12:31:08 +0200 [thread overview]
Message-ID: <mvbg0zy3t77.fsf@phobos.lrde.epita.fr> (raw)
[please CC-me, I'm off the list]
Hi,
a2ps has changed its `--list=feature' output
(somewhere between 4.10.4 and 4.12c, I don't know when)
which is used by zsh-3.1.6.pws6/Completion/User/_a2ps.
Besides this output is subject to locales so LC_ALL=C
should be added (is there any other completion functions
affected by this ?).
The following patch should fix both things and still work
with old a2ps. I would really like to know if there is an
easiest way to make these patterns matching case insensitive.
--- Completion/User/_a2ps.old Wed Sep 29 11:45:48 1999
+++ Completion/User/_a2ps Wed Sep 29 11:51:44 1999
@@ -7,17 +7,17 @@
_a2ps_cache_cmd="$words[1]"
- descr=( "${(@)${(f@)$($words[1] --list=features)//
+ descr=( "${(@)${(f@)$(LC_ALL=C $words[1] --list=features)//
/ }:#}" )
_a2ps_cache_values=(
- "${descr[(r)Known style sheets*]#* }"
- "${descr[(r)Known encodings*]#* }"
- "${descr[(r)Known media*]#* }"
- "${descr[(r)Known prologues*]#* }"
+ "${descr[(r)Known [Ss]tyle [Ss]heets*]#* }"
+ "${descr[(r)Known [Ee]ncodings*]#* }"
+ "${descr[(r)Known [Mm]edia*]#* }"
+ "${descr[(r)Known [Pp]rologues*]#* }"
"${descr[(r)Known PostScript Printer Descriptions*]#* }"
- "${descr[(r)Known output destination*]#* }"
- "${descr[(r)Known user options*]#* }"
+ "${descr[(r)Known [Oo]utput [Dd]estination*]#* }"
+ "${descr[(r)Known [Uu]ser [Oo]ptions*]#* }"
"${descr[(r)Known Variables*]#* }"
)
fi
--
Alexandre 'Pollux' Duret-Lutz
reply other threads:[~1999-09-29 10:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=mvbg0zy3t77.fsf@phobos.lrde.epita.fr \
--to=duret_g@epita.fr \
--cc=zsh-workers@sunsite.auc.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).