[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Failed exec resets job control state

From: Chet Ramey
Subject: Re: Failed exec resets job control state
Date: Sun, 17 Feb 2019 14:59:42 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.5.0

On 2/15/19 7:32 PM, Grisha Levit wrote:
> An `exec` that can't execute the supplied command seems to cause the
> status of job control to become reset to the default state:
>    $ bash -O execfail -mc 'echo $-; exec xxx; echo $-'
>    hmBc
>    bash: line 0: exec: xxx: not found
>    hBc
>    $ set +m; echo $-
>    hiBHs
>    $ exec xxx
>    bash: exec: xxx: not found
>    $ echo $-
>    himBHs

Thanks for the report. It's an unusual set of circumstances where one
turns off job control in an interactive shell.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://tiswww.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]