zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: Harden `colors' function for certain options
@ 2011-02-15  8:30 Frank Terbeck
  0 siblings, 0 replies; only message in thread
From: Frank Terbeck @ 2011-02-15  8:30 UTC (permalink / raw)
  To: zsh-workers

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


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

only message in thread, other threads:[~2011-02-15  8:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-15  8:30 PATCH: Harden `colors' function for certain options Frank Terbeck

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