{"thread":{"id":"38174","subject":"[PATCH] git-prompt.sh: make $f local to __git_eread()","startedAt":"2014-12-12T21:59:56Z","lastAt":"2014-12-12T21:59:56Z","messageCount":1,"participants":["jguenther@gmail.com"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"253668","messageId":"1418421596-7898-1-git-send-email-jguenther@gmail.com","threadId":"38174","inReplyTo":null,"subject":"[PATCH] git-prompt.sh: make $f local to __git_eread()","fromName":"","fromEmail":"jguenther@gmail.com","sentAt":"2014-12-12T21:59:56Z","receivedAt":"2014-12-12T21:59:56Z","isPatch":true,"sender":{"key":"jguenther@gmail.com","avatar":null},"body":"From: Justin Guenther <jguenther@gmail.com>\n\nThis function uses (non-local) $f to store the value of its first parameter.\nThis can interfere with the user's environment.\n\nSigned-off-by: Justin Guenther <jguenther@gmail.com>\n---\n contrib/completion/git-prompt.sh | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/contrib/completion/git-prompt.sh b/contrib/completion/git-prompt.sh\nindex c5473dc..729f769 100644\n--- a/contrib/completion/git-prompt.sh\n+++ b/contrib/completion/git-prompt.sh\n@@ -270,7 +270,7 @@ __git_ps1_colorize_gitstring ()\n \n __git_eread ()\n {\n-\tf=\"$1\"\n+\tlocal f=\"$1\"\n \tshift\n \ttest -r \"$f\" && read \"$@\" <\"$f\"\n }\n-- \n2.2.0.37.g2035459\n"}]}