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


Groups > gnu.bash.bug > #16294

Re: CTRL-C on command line does not cancel current command

Path csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail
From Paul Kelaita <paul@kelaita.com>
Newsgroups gnu.bash.bug
Subject Re: CTRL-C on command line does not cancel current command
Date Fri, 8 May 2020 14:46:45 -0700
Lines 107
Approved bug-bash@gnu.org
Message-ID <mailman.2455.1588974413.3066.bug-bash@gnu.org> (permalink)
References <20200508213559.GF751@eeg.ccf.org> <406707EB-FFAC-48BD-BA8F-37CFE09CFFB9@kelaita.com>
NNTP-Posting-Host lists.gnu.org
Mime-Version 1.0 (1.0)
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding quoted-printable
X-Trace usenet.stanford.edu 1588974413 7256 209.51.188.17 (8 May 2020 21:46:53 GMT)
X-Complaints-To action@cs.stanford.edu
Cc bug-bash@gnu.org
To Greg Wooledge <wooledg@eeg.ccf.org>
Envelope-to bug-bash@gnu.org
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=tUSsP8a/EEwoDTx3GZ+o4szY9tS6YVGGBaJQk1eVq1g=; b=GYEHrdHtIyJmuW2hZYbgICo6UGmO0LymQWeXtzx0KI+pMEoO6SJEQPi9167/Ypcagk irdcDIQvpOibMM4zy0gHizvJCC0lydCNZFno8o5v6Hf5cq3Ed0dHpHp667gCSVhX17ai Z/9BdFmuZOld7YNBJjOExGYsheDndPMD4WghKipvm7Q8tw6BMhD9bf7Eqgcmzm7AhxHt Jn1leGndwlc+kvZsrgzsnWJoY4mD+ylGIgxO2F7fag2t7cf4biAhlrWIfajpn0TvHFgN l/DvCCb+dN5Z7RoWxdf4cdWjrHXjssqiIR1wC+UToRqZsARc46mgI9Gt8L8eZ9rDhFpM E6Bg==
X-Gm-Message-State AGi0PubDoKJ1FimWJU1oCiZIW94qjR/ZfOhTErxoxt8eKCkc7c7xgBXt 9LeOmSYptsQVWr/6EhhwkWKLdvWe1XA=
X-Google-Smtp-Source APiQypKwDOoKwhetKjVIFu2WnGBHG072Le303hmMplyZmUp9XxTftgDf+/bU0P7UWtWocLjdBWVR+A==
X-Received by 2002:a63:ff49:: with SMTP id s9mr3945097pgk.46.1588974408145; Fri, 08 May 2020 14:46:48 -0700 (PDT)
In-Reply-To <20200508213559.GF751@eeg.ccf.org>
X-Mailer iPad Mail (17E262)
Received-SPF pass client-ip=209.85.210.177; envelope-from=paulkelaita@gmail.com; helo=mail-pf1-f177.google.com
X-detected-operating-system by eggs.gnu.org: First seen = 2020/05/08 17:46:49
X-ACL-Warn Detected OS = Linux 2.2.x-3.x [generic] [fuzzy]
X-Spam_score_int -15
X-Spam_score -1.6
X-Spam_bar -
X-Spam_report (-1.6 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MIME_QP_LONG_LINE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN
X-Spam_action no action
X-BeenThere bug-bash@gnu.org
X-Mailman-Version 2.1.23
Precedence list
List-Id Bug reports for the GNU Bourne Again SHell <bug-bash.gnu.org>
List-Unsubscribe <https://lists.gnu.org/mailman/options/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=unsubscribe>
List-Archive <https://lists.gnu.org/archive/html/bug-bash>
List-Post <mailto:bug-bash@gnu.org>
List-Help <mailto:bug-bash-request@gnu.org?subject=help>
List-Subscribe <https://lists.gnu.org/mailman/listinfo/bug-bash>, <mailto:bug-bash-request@gnu.org?subject=subscribe>
X-Mailman-Original-Message-ID <406707EB-FFAC-48BD-BA8F-37CFE09CFFB9@kelaita.com>
X-Mailman-Original-References <20200508213559.GF751@eeg.ccf.org>
Xref csiph.com gnu.bash.bug:16294

Show key headers only | View raw


Oh, it’s definitely bash.  Works nicely in iSH.  Sorry, I’m wondering if I should have taken this to the iSH forums, but it just seems like a bash issue.  I can run sh, csh, tcsh, and they all handle CTRL-C fine on the command line.  INTR is correct (see below), I’ve tried ‘stty sane’ and ‘stty reset’ to no avail.

I know it’s such a minor issue, but it’s one of those that keeps biting me throughout the day because of the way I’m trained.  I realize I can use CTRL-U, but...

Anyway, here is a snapshot of what you were asking.  I haven’t used readline much, if at all.

Thanks.
Paul



SHELL=/bin/bash
TERMCAP=SC|screen|VT 100/ANSI X3.64 virtual terminal:\
	:DO=\E[%dB:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:bs:bt=\E[Z:\
	:cd=\E[J:ce=\E[K:cl=\E[H\E[J:cm=\E[%i%d;%dH:ct=\E[3g:\
	:do=^J:nd=\E[C:pt:rc=\E8:rs=\Ec:sc=\E7:st=\EH:up=\EM:\
	:le=^H:bl=^G:cr=^M:it#8:ho=\E[H:nw=\EE:ta=^I:is=\E)0:\
	:li#64:co#161:am:xn:xv:LP:sr=\EM:al=\E[L:AL=\E[%dL:\
	:cs=\E[%i%d;%dr:dl=\E[M:DL=\E[%dM:dc=\E[P:DC=\E[%dP:\
	:im=\E[4h:ei=\E[4l:mi:IC=\E[%d@:ks=\E[?1h\E=:\
	:ke=\E[?1l\E>:vi=\E[?25l:ve=\E[34h\E[?25h:vs=\E[34l:\
	:ti=\E[?1049h:te=\E[?1049l:us=\E[4m:ue=\E[24m:so=\E[3m:\
	:se=\E[23m:mb=\E[5m:md=\E[1m:mh=\E[2m:mr=\E[7m:\
	:me=\E[m:ms:\
	:Co#8:pa#64:AF=\E[3%dm:AB=\E[4%dm:op=\E[39;49m:AX:\
	:vb=\Eg:G0:as=\E(0:ae=\E(B:\
	:ac=\140\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:\
	:po=\E[5i:pf=\E[4i:Km=\E[<:k0=\E[10~:k1=\EOP:k2=\EOQ:\
	:k3=\EOR:k4=\EOS:k5=\E[15~:k6=\E[17~:k7=\E[18~:\
	:k8=\E[19~:k9=\E[20~:k;=\E[21~:F1=\E[23~:F2=\E[24~:\
	:F3=\E[1;2P:F4=\E[1;2Q:F5=\E[1;2R:F6=\E[1;2S:\
	:F7=\E[15;2~:F8=\E[17;2~:F9=\E[18;2~:FA=\E[19;2~:\
	:FB=\E[20;2~:FC=\E[21;2~:FD=\E[23;2~:FE=\E[24;2~:kb=^H:\
	:K1=\EOw:K2=\EOu:K3=\EOy:K4=\EOq:K5=\EOs:kB=\E[Z:\
	:kF=\E[1;2B:kR=\E[1;2A:*4=\E[3;2~:*7=\E[1;2F:#2=\E[1;2H:\
	:#3=\E[2;2~:#4=\E[1;2D:%c=\E[6;2~:%e=\E[5;2~:%i=\E[1;2C:\
	:kh=\E[1~:@1=\E[1~:kH=\E[4~:@7=\E[4~:kN=\E[6~:kP=\E[5~:\
	:kI=\E[2~:kD=\E[3~:ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:km:
WINDOW=3
EDITOR=vim
PWD=/home/paul
LOGNAME=paul
TZ=PST8PDT
HOME=/home/paul
TERM=screen
USER=paul
SHLVL=2
PAGER=less


speed 0 baud; rows 63; columns 161; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R;
werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd -cmspar cs5 -hupcl -cstopb -cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok echonl -noflsh -xcase -tostop -echoprt
echoctl -echoke -flusho -extproc


GNU bash, version 5.0.11(1)-release (i586-alpine-linux-musl)
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>







> On May 8, 2020, at 2:36 PM, Greg Wooledge <wooledg@eeg.ccf.org> wrote:
> 
> On Fri, May 08, 2020 at 02:26:34PM -0700, Paul Kelaita wrote:
>> Only seeing this on Alpine BusyBox (iSH) on iOS 13.x with either 5.0.11 or 5.0.17
> 
> Busybox is a shell, in addition to being other tools.  Perhaps you're
> not even in bash at all?
> 
> What does "ps -p $$" say?  How about "set | grep BASH"?
> 
> If it turns out that you really are in bash, not in busybox, then we'd
> need to know a bit more about your environment.  What kind of terminal
> emulator are you in?  What does "stty -a" say?  Have you configured
> readline (look for /etc/inputrc and ~/.inputrc files) in some nonstandard
> way?

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: CTRL-C on command line does not cancel current command Paul Kelaita <paul@kelaita.com> - 2020-05-08 14:46 -0700

csiph-web