# Bug report: Git Stash; spelling mistake of stash followed by a yes prints character 'y' infinite times.

2 messages from 2017-05-03 to 2017-05-06. Participants: Rashmi Pai, Dennis Kaarsemaker.
Thread: https://gitlist.dev/t/45856

## Rashmi Pai, 2017-05-03 09:21

Subject: Bug report: Git Stash; spelling mistake of stash followed by a yes prints character 'y' infinite times.
Message-ID: <CAOqCAXSOZCG8mijV+yATtmC1PFGYiOSqtraSdbhbP2rRHBO_Qg@mail.gmail.com>
URL: https://gitlist.dev/e/CAOqCAXSOZCG8mijV%2ByATtmC1PFGYiOSqtraSdbhbP2rRHBO_Qg%40mail.gmail.com

```
Hi,
I am a corporate user of git. I noticed that when you switch between
the branches and do a git stash ( I miss spelled it as git stahs). Git
asked if i meant git stash. and i entered yes. and git printed the
character y infinite times.

Below are the steps to reproduce.
1. create a local branch and make some code changes in the same branch.
2. now checkout another branch. git says Your local changes to the
following files would be overwritten by checkout.
3. Now do git stahs ( spelling mistake )
4. Now git says git: 'stahs' is not a git command. See 'git --help'.

Did you mean this?

stash

5. Now types yes. and you will see character 'y' getting printed
infinite times!.

Though this is not a major bug, I thought notifying this would be a
good idea. The above mentioned issue is reproducible in Mac Yosemite
in git version 2.4.5

Thank you all for making our lives easier and better :)..

-- 
REGARDS
Rashmi Pai :)

```

## Dennis Kaarsemaker, 2017-05-06 17:18

Subject: Re: Bug report: Git Stash; spelling mistake of stash followed by a yes prints character 'y' infinite times.
Message-ID: <1494091082.24179.9.camel@kaarsemaker.net>
URL: https://gitlist.dev/e/1494091082.24179.9.camel%40kaarsemaker.net
In-Reply-To: <CAOqCAXSOZCG8mijV+yATtmC1PFGYiOSqtraSdbhbP2rRHBO_Qg@mail.gmail.com>

```
On Wed, 2017-05-03 at 14:51 +0530, Rashmi Pai wrote:

> I am a corporate user of git. I noticed that when you switch between
> the branches and do a git stash ( I miss spelled it as git stahs). Git
> asked if i meant git stash. and i entered yes. and git printed the
> character y infinite times.

Hi Rashmi,

While git asks the question 'Did you mean stash', that question is
merely rhetorical, it does not expect an answer but exits. So what
you're seeing is the output of the shell builting 'yes', not output
from git.

D.

```
