[issue1350] grml-etc-core/etc/zsh/zshrc - clutters enviroment

Thilo Six bts at bts.grml.org
Thu May 14 13:18:02 CEST 2015


New submission from Thilo Six <tech at xk2c.de>:

Dear Grml Maintainers and Zsh-lovers,  ;)

you are known to take great care to not clutter environment, when using your
/etc/zsh/zshrc as base.

I figured non the less some used variables has fallen through.
In particular this example cause real bugs:

<<<<< >8 <<<<< >8 <<<<< >8 <<<<< >8 <<<<< >8 <<<<<
# make sure our environment is clean regarding colors
for color in BLUE RED GREEN CYAN YELLOW MAGENTA WHITE ; unset $color
<<<<< >8 <<<<< >8 <<<<< >8 <<<<< >8 <<<<< >8 <<<<<

here the var color is defined, which is expected by other scripts and functions
to be an array.

Attached is a patch which fixes this and some more.

I hope i didn't break anything. A 4 eyes reviewing can't hurt though.

Thanks!

bye Thilo

----------
files: grml-etc-core:etc:zsh:zshrc.patch
messages: 4951
nosy: Xk2c
priority: bug
status: unread
title: grml-etc-core/etc/zsh/zshrc - clutters enviroment

_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue1350>
_____________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grml-etc-core:etc:zsh:zshrc.patch
Type: text/x-diff
Size: 3682 bytes
Desc: not available
URL: <http://ml.grml.org/pipermail/bugs-changes/attachments/20150514/883470cf/attachment.patch>


More information about the Bugs-changes mailing list