BTS

Message4951

Author Xk2c
Recipients Xk2c
Date 2015-05-14.11:18:01
Content
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
File name Uploaded
grml-etc-core:etc:zsh:zshrc.patch Xk2c, 2015-05-14.11:18:01
History
Date User Action Args
2015-05-14 11:18:02Xk2csetrecipients: + Xk2c
2015-05-14 11:18:02Xk2csetmessageid: <1431602282.03.0.836957450392.issue1350@bts.grml.org>
2015-05-14 11:18:02Xk2clinkissue1350 messages
2015-05-14 11:18:01Xk2ccreate