threads / bug / 47718

Bug/comment

Subject: Bug/comment

## tl;dr

3 messages between Jan 29, 2018 and Jan 31, 2018.

replies: 2people: 3as markdown or json

Ilija Pecelj· Jan 29, 2018, 23:21 UTC · lore

Though it might not be considered a bug 'per se' it is definitely wired. Namely, when you type 'yes' word and hit enter in git bash for widnows, the process enters infinite loop and just prints 'y' letter in new line. It can be interrupted with CTRL+C. I'm not sure if it has any other consequences other than printing letter 'y' in infinite loop.

Cheers,
Ilija
Andrew Ardill· Jan 30, 2018, 00:02 UTC · re: Ilija Pecelj · lore

Re: Bug/comment

Hi Ilija,
On 30 January 2018 at 10:21, Ilija Pecelj <pecelj@gmail.com> wrote:
> Though it might not be considered a bug 'per se' it is definitely wired.
> Namely, when you type 'yes' word and hit enter in git bash for widnows, the
> process enters infinite loop and just prints 'y' letter in new line.

What you are seeing is a program called `yes`, the job of which is to print the letter 'y' (or something else if requested) on a new line as often as it can.

It is used, for example, when you want to answer 'yes' to all the prompts a program may ask. See more at https://en.wikipedia.org/wiki/Yes_(Unix)

I agree it's a little weird if you have no idea what it's doing, but it is very useful and very old, used by many many different scripts etc, and so unlikely to change.

Regards,
Andrew Ardill
Kaartic Sivaraam· Jan 31, 2018, 17:38 UTC · re: Andrew Ardill · lore

Re: Bug/comment

On Tuesday 30 January 2018 05:32 AM, Andrew Ardill wrote:
Show 13 quoted lines
> Hi Ilija,
> 
> On 30 January 2018 at 10:21, Ilija Pecelj <pecelj@gmail.com> wrote:
>> Though it might not be considered a bug 'per se' it is definitely wired.
>> Namely, when you type 'yes' word and hit enter in git bash for widnows, the
>> process enters infinite loop and just prints 'y' letter in new line.
>
> ...
>
> I agree it's a little weird if you have no idea what it's doing, but
> it is very useful and very old, used by many many different scripts
> etc, and so unlikely to change.
>

Just to make things more clear, 'yes' is an UNIX utility (as hinted in the Wikipedia article link) that might come as part of Cygwin and is not a part of Git itself.

-- 
Kaartic

QUOTE

“It is impossible to live without failing at something, unless you live
so cautiously that you might as well not have lived at all – in which
case, you fail by default.”

      - J. K. Rowling


WIKIPEDIA: DID YOU KNOW?

Only 33% of internet users in India have heard of Wikipedia !!

* What do you think could be the reason behind this?

* What are ways in which the awareness about Wikipedia in India and
other countries be increased ?

Reference:

* Give your ideas for increasing the awareness of Wikipedia in India and
in other countries and get a Grant from the Wikimedia Foundation to
bring your idea to life.

  https://meta.wikimedia.org/wiki/Grants:IdeaLab/Inspire

* Know more about the awareness problem of Wikipedia

  https://meta.wikimedia.org/wiki/New_Readers/Awareness

  https://meta.wikimedia.org/wiki/New_Readers/Next_steps/Raising_awareness

← back to recent threads