bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fwd: Don't set $?=130 when discarding the current command line (not run


From: Clark Wang
Subject: Fwd: Don't set $?=130 when discarding the current command line (not run yet) with CTRL-C?
Date: Thu, 21 Nov 2019 10:27:08 +0800

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]