Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14969
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: [Help-bash] Why does ctrl-c behave differently for builtin sleep in a subshell? |
| Date | 2018-12-27 13:46 -0500 |
| Organization | ITS, Case Western Reserve University |
| Message-ID | <mailman.6406.1545936395.1284.bug-bash@gnu.org> (permalink) |
| References | <CABrM6w=ATuNj9bXPDOr_otsJEwRXghBEn2Fno1TWuKou2_tsbQ@mail.gmail.com> <CABrM6wn-UfBmV4JG6yvcPGWz5TZy7qn0yLOhJzjF6fMsQMwx-g@mail.gmail.com> <CABrM6wmEAOEB6byLVbihEbiBO4phbWg7yuwo1o6aY8chsDzpxw@mail.gmail.com> |
On 12/25/18 11:28 AM, Peng Yu wrote: > If I add a command after the builtin sleep, then the EXIT trap will be > triggered upon typing ctrl-C. > > If the last command is removed, then the EXIT trap will not be > triggered upon typing ctrl-C. It's a bug in bash-4.4, fixed in bash-5.0. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: [Help-bash] Why does ctrl-c behave differently for builtin sleep in a subshell? Chet Ramey <chet.ramey@case.edu> - 2018-12-27 13:46 -0500
csiph-web