On 10/6/17 6:58 PM, ANDERSON, CRAIG wrote: > Repeat-By: > Running the following script: > > #!/bin/bash > > exec >& >(while read line; do echo "$line"; done) > > trap 'echo sigpipe' SIGPIPE > trap 'echo sigint' SIGINT > > echo 'Sleeping 60 seconds, press Ctrl+C to segfault!' > sleep 60
You have created a situation where you will get SIGPIPE over and over again, running the SIGPIPE trap handler (each invocation of which generates a SIGPIPE because the pipe to the process substitution is broken), until the shell runs out of stack space. -- ``The lyf so short, the craft so long to lerne.'' - Chaucer ``Ars longa, vita brevis'' - Hippocrates Chet Ramey, UTech, CWRU c...@case.edu http://cnswww.cns.cwru.edu/~chet/