Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #15621 > unrolled thread

Fwd: Don't set $?=130 when discarding the current command line (not run yet) with CTRL-C?

Started byClark Wang <dearvoid@gmail.com>
First post2019-11-21 10:27 +0800
Last post2019-11-21 10:27 +0800
Articles 1 — 1 participant

Back to article view | Back to gnu.bash.bug

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Fwd: Don't set $?=130 when discarding the current command line (not run yet) with CTRL-C? Clark Wang <dearvoid@gmail.com> - 2019-11-21 10:27 +0800

#15621 — Fwd: Don't set $?=130 when discarding the current command line (not run yet) with CTRL-C?

FromClark Wang <dearvoid@gmail.com>
Date2019-11-21 10:27 +0800
SubjectFwd: Don't set $?=130 when discarding the current command line (not run yet) with CTRL-C?
Message-ID<mailman.2142.1574303270.13325.bug-bash@gnu.org>
It's quite common for people to press CTRL-C to discard the current command
line. This is harmless actually for most times except when people include
$? in $PS1. I also show $? in red color when it's not 0 so it's more
noticeable. So is it OK to not change $? when people are pressing CTRL-C to
discard the input?

-clark

[toc] | [standalone]


Back to top | Article view | gnu.bash.bug


csiph-web