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 c...@case.edu http://tiswww.cwru.edu/~chet/