Re: Clarification needed on signal spec EXIT

2012-10-20 Thread Francis Moreau
Chester, You could you clarify/help, please ? On Wed, Oct 17, 2012 at 11:13 AM, Francis Moreau wrote: > On Tue, Oct 16, 2012 at 10:00 PM, Bob Proulx wrote: >> Francis Moreau wrote: >>> -- >>> main_cleanup () { echo main cleanup; } >>> submain_cleanup () { echo sub cleanup; } >>> >>>

Re: Clarification needed on signal spec EXIT

2012-10-20 Thread Chet Ramey
On 10/16/12 4:00 PM, Bob Proulx wrote: > Francis Moreau wrote: >> -- >> main_cleanup () { echo main cleanup; } >> submain_cleanup () { echo sub cleanup; } >> >> trap main_cleanup EXIT >> >> task_in_background () { >> echo "subshell $BASHPID" >> >> while :; do >>