Make is_event and other globals part of parser_t libdata

This commit is contained in:
ridiculousfish
2019-05-12 18:02:57 -07:00
parent c44dae2d73
commit 508c3a8005
10 changed files with 41 additions and 36 deletions

View File

@@ -92,7 +92,7 @@ static int parse_cmd_opts(function_cmd_opts_t &opts, int *optind, //!OCLINT(hig
if ((opt == 'j') && (wcscasecmp(w.woptarg, L"caller") == 0)) {
job_id_t job_id = -1;
if (is_subshell) {
if (parser.libdata().is_subshell) {
job_id = parser.libdata().caller_job_id;
}