Path: csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: Paul Kelaita 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: 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 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 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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 Oh, it=E2=80=99s definitely bash. Works nicely in iSH. Sorry, I=E2=80=99m w= ondering if I should have taken this to the iSH forums, but it just seems li= ke a bash issue. I can run sh, csh, tcsh, and they all handle CTRL-C fine o= n the command line. INTR is correct (see below), I=E2=80=99ve tried =E2=80=98= stty sane=E2=80=99 and =E2=80=98stty reset=E2=80=99 to no avail. I know it=E2=80=99s such a minor issue, but it=E2=80=99s one of those that k= eeps biting me throughout the day because of the way I=E2=80=99m trained. I= realize I can use CTRL-U, but... Anyway, here is a snapshot of what you were asking. I haven=E2=80=99t used r= eadline much, if at all. Thanks. Paul SHELL=3D/bin/bash TERMCAP=3DSC|screen|VT 100/ANSI X3.64 virtual terminal:\ :DO=3D\E[%dB:LE=3D\E[%dD:RI=3D\E[%dC:UP=3D\E[%dA:bs:bt=3D\E[Z:\ :cd=3D\E[J:ce=3D\E[K:cl=3D\E[H\E[J:cm=3D\E[%i%d;%dH:ct=3D\E[3g:\ :do=3D^J:nd=3D\E[C:pt:rc=3D\E8:rs=3D\Ec:sc=3D\E7:st=3D\EH:up=3D\EM:= \ :le=3D^H:bl=3D^G:cr=3D^M:it#8:ho=3D\E[H:nw=3D\EE:ta=3D^I:is=3D\E)0:= \ :li#64:co#161:am:xn:xv:LP:sr=3D\EM:al=3D\E[L:AL=3D\E[%dL:\ :cs=3D\E[%i%d;%dr:dl=3D\E[M:DL=3D\E[%dM:dc=3D\E[P:DC=3D\E[%dP:\ :im=3D\E[4h:ei=3D\E[4l:mi:IC=3D\E[%d@:ks=3D\E[?1h\E=3D:\ :ke=3D\E[?1l\E>:vi=3D\E[?25l:ve=3D\E[34h\E[?25h:vs=3D\E[34l:\ :ti=3D\E[?1049h:te=3D\E[?1049l:us=3D\E[4m:ue=3D\E[24m:so=3D\E[3m:\ :se=3D\E[23m:mb=3D\E[5m:md=3D\E[1m:mh=3D\E[2m:mr=3D\E[7m:\ :me=3D\E[m:ms:\ :Co#8:pa#64:AF=3D\E[3%dm:AB=3D\E[4%dm:op=3D\E[39;49m:AX:\ :vb=3D\Eg:G0:as=3D\E(0:ae=3D\E(B:\ :ac=3D\140\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--+= +,,hhII00:\ :po=3D\E[5i:pf=3D\E[4i:Km=3D\E[<:k0=3D\E[10~:k1=3D\EOP:k2=3D\EOQ:\ :k3=3D\EOR:k4=3D\EOS:k5=3D\E[15~:k6=3D\E[17~:k7=3D\E[18~:\ :k8=3D\E[19~:k9=3D\E[20~:k;=3D\E[21~:F1=3D\E[23~:F2=3D\E[24~:\ :F3=3D\E[1;2P:F4=3D\E[1;2Q:F5=3D\E[1;2R:F6=3D\E[1;2S:\ :F7=3D\E[15;2~:F8=3D\E[17;2~:F9=3D\E[18;2~:FA=3D\E[19;2~:\ :FB=3D\E[20;2~:FC=3D\E[21;2~:FD=3D\E[23;2~:FE=3D\E[24;2~:kb=3D^H:\ :K1=3D\EOw:K2=3D\EOu:K3=3D\EOy:K4=3D\EOq:K5=3D\EOs:kB=3D\E[Z:\ :kF=3D\E[1;2B:kR=3D\E[1;2A:*4=3D\E[3;2~:*7=3D\E[1;2F:#2=3D\E[1;2H:\= :#3=3D\E[2;2~:#4=3D\E[1;2D:%c=3D\E[6;2~:%e=3D\E[5;2~:%i=3D\E[1;2C:\= :kh=3D\E[1~:@1=3D\E[1~:kH=3D\E[4~:@7=3D\E[4~:kN=3D\E[6~:kP=3D\E[5~:= \ :kI=3D\E[2~:kD=3D\E[3~:ku=3D\EOA:kd=3D\EOB:kr=3D\EOC:kl=3D\EOD:km: WINDOW=3D3 EDITOR=3Dvim PWD=3D/home/paul LOGNAME=3Dpaul TZ=3DPST8PDT HOME=3D/home/paul TERM=3Dscreen USER=3Dpaul SHLVL=3D2 PAGER=3Dless speed 0 baud; rows 63; columns 161; line =3D 0; intr =3D ^C; quit =3D ^\; erase =3D ^?; kill =3D ^U; eof =3D ^D; eol =3D ; eol2 =3D ; swtch =3D ; start =3D ^Q; stop =3D ^S; susp =3D ^Z;= rprnt =3D ^R; werase =3D ^W; lnext =3D ^V; flush =3D ^O; min =3D 1; time =3D 0; -parenb -parodd -cmspar cs5 -hupcl -cstopb -cread -clocal -crtscts -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixo= ff -iuclc -ixany -imaxbel -iutf8 opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 f= f0 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 > On May 8, 2020, at 2:36 PM, Greg Wooledge wrote: >=20 > =EF=BB=BFOn 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 o= r 5.0.17 >=20 > Busybox is a shell, in addition to being other tools. Perhaps you're > not even in bash at all? >=20 > What does "ps -p $$" say? How about "set | grep BASH"? >=20 > 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?