From: Wolfgang Denk Date: Thu, 05 Jun 2014 23:43:07 +0200 Subject: [U-Boot] [PATCH 2/4] Add ctrlc_ignore environment variable to ignore Ctrl-C In-Reply-To: <1401992872-31985-3-git-send-email-sjg@chromium.org> References: <1401992872-31985-1-git-send-email-sjg@chromium.org> <1401992872-31985-3-git-send-email-sjg@chromium.org> Message-ID: <20140605214307.9191B3803E7@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Simon Glass, In message <1401992872-31985-3-git-send-email-sjg@chromium.org> you wrote: > Sometimes it is useful to ignore Ctrl-C, because checking for it causes the > CLI to drop characters. In particular for tests involving sandbox, where > input commands are piped in, some commands will call ctrlc() which will > drop characters from the test script. Why would that be the case? If this happens, I consider it a bug that should be fixed, and not papered over. > Add a CONFIG_SYS_CTRLC_IGNORE option which enables this variable. If the > variable is present (e.g. "setenv ctrlc_ignore ignore") then no checking > for Ctrl-C will be performed. I dislike this idea. It looks wrong to me. Can we not fix the problem at the root cause? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Nothing difficult is ever easy.