zsh-workers
 help / color / mirror / code / Atom feed
From: Frank Terbeck <ft@bewatermyfriend.org>
To: zsh-workers@zsh.org
Subject: PATCH: Harden `colors' function for certain options
Date: Tue, 15 Feb 2011 09:30:14 +0100	[thread overview]
Message-ID: <1297758614-1407-1-git-send-email-ft@bewatermyfriend.org> (raw)

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


                 reply	other threads:[~2011-02-15  8:40 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=1297758614-1407-1-git-send-email-ft@bewatermyfriend.org \
    --to=ft@bewatermyfriend.org \
    --cc=zsh-workers@zsh.org \
    /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).