Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #16170
| Path | csiph.com!5.us.feeder.erje.net!feeder.erje.net!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail |
|---|---|
| From | gentoo_eshoes@tutanota.com |
| Newsgroups | gnu.bash.bug |
| Subject | Re: looking for consistent C-c trap behavior |
| Date | Sun, 19 Apr 2020 00:45:07 +0200 (CEST) |
| Lines | 32 |
| Approved | bug-bash@gnu.org |
| Message-ID | <mailman.634.1587249913.3066.bug-bash@gnu.org> (permalink) |
| References | <M58iOBd--3-2@tutanota.com> <a8b7d5fc-0a64-0a0e-bd49-7f808f937813@case.edu> <M5EEHGq--3-2@tutanota.com> <M5ESsGC--3-2@tutanota.com> |
| NNTP-Posting-Host | lists.gnu.org |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=UTF-8 |
| Content-Transfer-Encoding | quoted-printable |
| X-Trace | usenet.stanford.edu 1587249914 11000 209.51.188.17 (18 Apr 2020 22:45:14 GMT) |
| X-Complaints-To | action@cs.stanford.edu |
| Cc | bug-bash@gnu.org, chet.ramey@case.edu |
| To | Chet Ramey <chet.ramey@case.edu> |
| Envelope-to | bug-bash@gnu.org |
| DKIM-Signature | v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1587249907; s=s1; d=tutanota.com; h=From:From:To:To:Subject:Subject:Content-Description:Content-ID:Content-Type:Content-Type:Content-Transfer-Encoding:Content-Transfer-Encoding:Cc:Cc:Date:Date:In-Reply-To:In-Reply-To:MIME-Version:MIME-Version:Message-ID:Message-ID:Reply-To:References:References:Sender; bh=C854azopnuDR6/tjokIlDlggCZT5WsWi1NnsJ7xBY5M=; b=ZcHIiNHDJfr9ynlGkcAe/HAMyOMgAvQApuJAvpzjEV6XbAzW4/XuDL5vRJU0g04Y nAIpcXFbD6ndSn8Uv9H77Ym+Wag7XV8RTisufwJHKqTdmcOtkt2BWLk2xxNL623w+pG EfIwVGVZsgkdtpPodeFeiPeibV8RVSa7sYjgjQZD+Sx17P+AYRPOBcA8ah319kbImCU 5F1hpXAZHt+5k8COCb2qjaE1ZGDZoy5N8c+/xC8CX1HAM/GmiWhUseg0Rgp+nNS3pE4 csGbMS/2P4o/DQe1C6kU5B6bOfqMwlN2XitaHE4YniyVkmqfSGHHzeXYw1x07Ptvcep V5DYCd7m1g== |
| In-Reply-To | <M5EEHGq--3-2@tutanota.com> |
| Received-SPF | pass client-ip=81.3.6.162; envelope-from=gentoo_eshoes@tutanota.com; helo=w1.tutanota.de |
| X-detected-operating-system | by eggs.gnu.org: Linux 2.2.x-3.x [generic] [fuzzy] |
| X-Received-From | 81.3.6.162 |
| 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 | <M5ESsGC--3-2@tutanota.com> |
| X-Mailman-Original-References | <M58iOBd--3-2@tutanota.com> <a8b7d5fc-0a64-0a0e-bd49-7f808f937813@case.edu> <M5EEHGq--3-2@tutanota.com> |
| Xref | csiph.com gnu.bash.bug:16170 |
Show key headers only | View raw
Apr 18, 2020, 23:41 by gentoo_eshoes@tutanota.com:
>
> On another note, I naively tried to patch out the POSIX requirement, for my own/local_use puposes but had no effect:
> in this code
> + /* posix mode SIGINT during read -e. We only get here if SIGINT is trapped. */
> + if (posixly_correct && this_shell_builtin == read_builtin && sig == 2)
> + {
> + last_command_exit_value = 128|SIGINT;
> + throw_to_top_level ();
> + }
> by removing "posixly_correct &&" from above. I've no idea why that would have no effect, a bit stumped.
> I've even tried with a prior 'make clean'. The only explanation is that some other code that happens only during `POSIXly correct` mode is affecting this somehow...
>
regarding the above, I stand corrected: it does indeed have effect but only on 'read -e' (just as the comment states), that bash_event_hook() function isn't entered for 'read -p' which to me was surprising, yet no doubt correct(I'm guessing).
The code that allows 'read -p' to be interrupted when posixly_correct, must then be somewhere else, I shall keep lookin', yet I fear I might not find it :-"
Back to gnu.bash.bug | Previous | Next | Find similar
Re: looking for consistent C-c trap behavior gentoo_eshoes@tutanota.com - 2020-04-19 00:45 +0200
csiph-web