Re: bash exiting session, command substitution, command_not_found_handle

2013-12-28 Thread Chet Ramey
On 12/28/13, 12:48 PM, Pierre Gaston wrote: >> Running a command that is not found in the background with a handler >> using command substitution kills the shell, or the whole session. >> >> Here is a test case: >> >> $ ( bash -ci 'command_not_found_handle () { printf "$(true)"; }; >> nonexisting

Re: bash exiting session, command substitution, command_not_found_handle

2013-12-28 Thread Pierre Gaston
On Sat, Dec 28, 2013 at 7:32 PM, Pierre Gaston wrote: > (from #bash on freenode) > > Running a command that is not found in the background with a handler > using command substitution kills the shell, or the whole session. > > Here is a test case: > > $ ( bash -ci 'command_not_found_handle () { pr

bash exiting session, command substitution, command_not_found_handle

2013-12-28 Thread Pierre Gaston
(from #bash on freenode) Running a command that is not found in the background with a handler using command substitution kills the shell, or the whole session. Here is a test case: $ ( bash -ci 'command_not_found_handle () { printf "$(true)"; }; nonexistingcommand &') [1] 4696 $ bash: child setp