# Re: [PATCH 1/2] git-prompt.sh: Don't error on null ${ZSH,BASH}_VERSION, $short_sha

1 messages from 2016-06-06 to 2016-06-06. Participants: Ville Skyttä.
Thread: https://gitlist.dev/t/42541

## Ville Skyttä, 2016-06-06 16:33

Subject: Re: [PATCH 1/2] git-prompt.sh: Don't error on null ${ZSH,BASH}_VERSION, $short_sha
Message-ID: <CABr9L5A1i9Qiood7RnBiSOKAGOPLd+-Nh2b0B73RuFwVJygbKQ@mail.gmail.com>
URL: https://gitlist.dev/e/CABr9L5A1i9Qiood7RnBiSOKAGOPLd%2B-Nh2b0B73RuFwVJygbKQ%40mail.gmail.com

```
On Mon, Jun 6, 2016 at 7:29 PM, Ville Skyttä <ville.skytta@iki.fi> wrote:
> When the shell is in "nounset" or "set -u" mode, referencing unset or
> null variables results in an error. Protect $ZSH_VERSION and
> $BASH_VERSION against that, and initialize $short_sha before use.

No part 2/2 will be coming, 1/2 is all there is to this change, sorry
about the confusion.

```
