commit bash-20170106 snapshot

This commit is contained in:
Chet Ramey
2017-01-10 17:05:14 -05:00
parent ec157dfefb
commit ee88838cf9
6 changed files with 24 additions and 3 deletions
+17
View File
@@ -12956,3 +12956,20 @@ parser.h
parse.y
- xparse_dolparen: need ALIAS or DPAREN_ARITHMETIC to be defined to
use STRING_SAVER
1/3
---
sig.c
- termsig_handler: don't call end_job_control if subshell_environment
indicates that we're in a command or process substitution.
Provisional fix for bug reported by Russell King <rmk@armlinux.org.uk>
jobs.c
- end_job_control: only attempt to give the terminal back to
original_pgrp if job_control != 0; don't test interactive_shell
execute_cmd.c
- execute_disk_command: call QUIT after search_for_command, since
the only time QUIT gets called is when the path is actually
searched. It doesn't happen for an absolute pathname. Fix for
bug reported by Russell King <rmk@armlinux.org.uk>
+1
View File
@@ -5212,6 +5212,7 @@ execute_disk_command (words, redirects, command_line, pipe_in, pipe_out,
#endif /* RESTRICTED_SHELL */
command = search_for_command (pathname, CMDSRCH_HASH|(stdpath ? CMDSRCH_STDPATH : 0));
QUIT;
if (command)
{
+1 -1
View File
@@ -4707,7 +4707,7 @@ without_job_control ()
void
end_job_control ()
{
if (interactive_shell || job_control) /* XXX - should it be just job_control? */
if (job_control)
{
terminate_stopped_jobs ();
+2 -1
View File
@@ -570,7 +570,8 @@ termsig_handler (sig)
#if defined (JOB_CONTROL)
if (sig == SIGHUP && (interactive || (subshell_environment & (SUBSHELL_COMSUB|SUBSHELL_PROCSUB))))
hangup_all_jobs ();
end_job_control ();
if ((subshell_environment & (SUBSHELL_COMSUB|SUBSHELL_PROCSUB)) == 0)
end_job_control ();
#endif /* JOB_CONTROL */
#if defined (PROCESS_SUBSTITUTION)
+2
View File
@@ -5882,7 +5882,9 @@ process_substitute (string, open_for_read_in_child)
close (parent_pipe_fd);
close (child_pipe_fd);
#endif /* HAVE_DEV_FD */
#if defined (JOB_CONTROL)
restore_pipeline (1);
#endif
return ((char *)NULL);
}
+1 -1
View File
@@ -1,4 +1,4 @@
BUILD_DIR=/usr/local/build/bash/bash-current
BUILD_DIR=/usr/local/build/chet/bash/bash-current
THIS_SH=$BUILD_DIR/bash
PATH=$PATH:$BUILD_DIR