Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
PATCH: Harden `colors' function for certain options
- X-seq: zsh-workers 28758
- From: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: PATCH: Harden `colors' function for certain options
- Date: Tue, 15 Feb 2011 09:30:14 +0100
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
A user reported, that he had an issue loading the colors function to the
debian bts¹. Turns out this was because he was setting the `ksh_arrays'
option before running the function.
This should fix the issue.
¹ <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=613162>
---
Functions/Misc/colors | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/Functions/Misc/colors b/Functions/Misc/colors
index bef93c8..027ca9a 100644
--- a/Functions/Misc/colors
+++ b/Functions/Misc/colors
@@ -1,6 +1,8 @@
# Put standard ANSI color codes in shell parameters for easy use.
# Note that some terminals do not support all combinations.
+emulate -L zsh
+
typeset -Ag color colour
color=(
--
1.7.4.rc1.7.g2cf08
Messages sorted by:
Reverse Date,
Date,
Thread,
Author