Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #15168
| From | Chet Ramey <chet.ramey@case.edu> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: background, pipeline, hang |
| Date | 2019-07-14 17:06 -0400 |
| Organization | ITS, Case Western Reserve University |
| Message-ID | <mailman.1335.1563138414.2688.bug-bash@gnu.org> (permalink) |
| References | <20190712140057.7F34B12552B@sint.jonkmans.nl> <6c7c3315-d319-d8bd-dfcc-962f9b9ce80a@case.edu> <20190713095508.GB21798@sint.jonkmans.nl> <b078e481-777c-2b6a-2773-ab9925c2c31c@case.edu> |
On 7/13/19 5:55 AM, Mike Jonkmans wrote: > This runs for two seconds: > bash --norc --noprofile -ic "trap 'tput hs' DEBUG; sleep 2 & :|:|:" > > While this immediately finishes: > bash --norc --noprofile -ic "trap ':' DEBUG; sleep 2 & :|:|:" I believe this has to do with running a process that forks from the DEBUG trap while executing a pipeline. Just another reason executing a DEBUG trap for a simple command that's run as part of a pipeline is a bad idea. This looks like a Linux-only problem, so I'll look when I have better access to a Linux machine. Chet -- ``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: background, pipeline, hang Chet Ramey <chet.ramey@case.edu> - 2019-07-14 17:06 -0400
csiph-web