commit bash-20181012 snapshot

This commit is contained in:
Chet Ramey
2018-10-15 09:08:29 -04:00
parent c87bb0a8f7
commit 93e3d9f6ae
14 changed files with 592 additions and 43 deletions
+3 -1
View File
@@ -624,7 +624,9 @@ execute_command_internal (command, asynchronous, pipe_in, pipe_out,
/* Fork a subshell, turn off the subshell bit, turn off job
control and call execute_command () on the command again. */
line_number_for_err_trap = line_number = command->value.Subshell->line; /* XXX - save value? */
if (command->type == cm_subshell)
line_number_for_err_trap = line_number = command->value.Subshell->line; /* XXX - save value? */
/* Otherwise we defer setting line_number */
tcmd = make_command_string (command);
paren_pid = make_child (p = savestring (tcmd), asynchronous);