Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: Harden `colors' function for certain options



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