Summary: | app-shells/zsh - prompt_gentoo_setup: replace globally declared variables with local variables | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Mark (voidzero) <mark> |
Component: | New packages | Assignee: | Torsten Veller (RETIRED) <tove> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | polynomial-c, radhermit |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | Define necessary variables in a local context |
There was a new zsh version but this patch was not implemented. Please implement, it' There was a new zsh version but this patch was not implemented. Please implement, it's trivial and simple. Hellooo is anyone there.... there..... here....... ere....... re...... Fixed in CVS. |
Created attachment 336518 [details, diff] Define necessary variables in a local context Supplied is a patch for the included colourful gentoo prompt. The patch replaces globally declared variables with local ones. There is no reason for the prompt specific variables to be defined in a global context. I have 'setopt warncreateglobal' enabled in my shell by default. With this, whenever a script creates new global variables without explicitly making them global (typeset -g), it yields warnings on the shell. Very convenient :)