cmderdev / cmder

Lovely console emulator package for Windows
https://cmder.app
MIT License
25.74k stars 2.02k forks source link

Question: Cmder keeps printing "y", is it a bug? #2884

Closed Vic-wkx closed 9 months ago

Vic-wkx commented 9 months ago

Question

One look is worth a thousand words: cmder_keeps_printing_y

Reproduce steps:

  1. Run command "echo off && echo", verify the "ECHO is off." printed.
  2. Enter "yes", verify Cmder keeps printing "y".

The printing can be exited by "Ctrl + C" and the echo can be opened again by running command "echo on".

I think it's weird but I'm not sure if it's a bug.

Checklist

chrisant996 commented 9 months ago

Cmder isn't doing that.

You launched the yes.exe program, which is part of git.

The purpose of the yes.exe program is to print y over and over, so that it can be used to pipe "yes" answers repeatedly into programs doing bulk operations (like deleting files or copying files or etc).

You can find out more about the yes.exe program with internet searches.

(Why did you launch the yes.exe program?)

Vic-wkx commented 9 months ago

@chrisant996 Thanks for the reply, I launch the yes.exe without intention, I've never heard of it before. An interesting knowledge learned.