diff options
Diffstat (limited to 'execute_cmd.c')
-rw-r--r-- | execute_cmd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/execute_cmd.c b/execute_cmd.c index 16a2f9a9..c67c363f 100644 --- a/execute_cmd.c +++ b/execute_cmd.c @@ -592,7 +592,8 @@ execute_command_internal (command, asynchronous, pipe_in, pipe_out, close_pipes (pipe_in, pipe_out); #if defined (PROCESS_SUBSTITUTION) && defined (HAVE_DEV_FD) - unlink_fifo_list (); + if (variable_context == 0) /* wait until shell function completes */ + unlink_fifo_list (); #endif /* If we are part of a pipeline, and not the end of the pipeline, then we should simply return and let the last command in the |