Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
_a2ps completion is broken
- X-seq: zsh-workers 8094
- From: pollux <duret_g@xxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: _a2ps completion is broken
- Date: 29 Sep 1999 12:31:08 +0200
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
[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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author