threads / discuss / 36645

Bash prompt "namespace" issue

Subject: Bash prompt "namespace" issue

## tl;dr

2 messages between May 13, 2014 and May 13, 2014.

replies: 1people: 2as markdown or json

szeder@ira.uka.de· May 13, 2014, 06:18 UTC · lore
Hi,

Commit 59d3924fb (prompt: fix missing file errors in zsh) added the helper function eread() to git-prompt.sh. That function should be in the git "namespace", i.e. prefixed with __git_, otherwise it might collide with a function of the same name in the user's environment.

It's already in master and I don't have the means to send a patch fixing this ATM, sorry.

Best, Gábor

Junio C Hamano· May 13, 2014, 18:52 UTC · re: szeder@ira.uka.de · lore

Re: Bash prompt "namespace" issue

szeder@ira.uka.de writes:
Show 7 quoted lines
> Commit 59d3924fb (prompt: fix missing file errors in zsh) added the  
> helper function eread() to git-prompt.sh.  That function should be in  
> the git "namespace", i.e. prefixed with __git_, otherwise it might  
> collide with a function of the same name in the user's environment.
>
> It's already in master and I don't have the means to send a patch  
> fixing this ATM, sorry.

Thanks. I think the patch Felipe posted to rename it to __git_eread is a reasonable regression fix, so I'll queue it on top of the problematic commit 59d3924f (prompt: fix missing file errors in zsh, 2014-04-11) and merge the result to 'master'.

← back to recent threads