Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Subprocess crashes not reported within blocks #4962
This seems to have been originally added on purpose. See parse_execution.cpp:run_1_job():
job->set_flag(JOB_SKIP_NOTIFICATION, is_subshell || is_block || is_event || !shell_is_interactive());
It seems safe to remove blocks from this, though I'd probably even report crashes (SIGABRT) for events and "subshell"s (this is talking about command substitutions).
Bash's policy here seems to be to notify about crashes except in command substitutions - even if the shell isn't interactive!
So that would be
Which I don't quite get.
Anyone got any ideas for a better policy than what we have now?