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