[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Bash 4.3.11(1) crashes after running exec
From: |
Chet Ramey |
Subject: |
Re: Bash 4.3.11(1) crashes after running exec |
Date: |
Mon, 27 Jun 2016 13:03:17 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 |
On 6/27/16 12:52 PM, #pragma wrote:
> Thank you for the answer. I would agree with you, but there is something
> more.
> If I change command from the first step to this:
>
> user@host:~$ exec man man man
>
> and leave other steps as were before, then bash crashes as well. Also on
> tty logins.
Again, what do you expect to happen? You replace the bash process -- it
goes away. As soon as the man process terminates, your session ends. This
is what `exec' does.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/