about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEric Freese <ericdfreese@gmail.com>2019-04-09 12:34:04 -0600
committerPeter Stephenson <p.stephenson@samsung.com>2019-04-10 09:44:58 +0100
commit5c165453ab1d0a91a0b7a5c8493bafddad4eaab2 (patch)
tree478f8badf6ba2599040234e8785a0b66a2ddd991
parentc5519372808d78519e1bac2db165d19a34534f74 (diff)
downloadzsh-5c165453ab1d0a91a0b7a5c8493bafddad4eaab2.tar.gz
zsh-5c165453ab1d0a91a0b7a5c8493bafddad4eaab2.tar.xz
zsh-5c165453ab1d0a91a0b7a5c8493bafddad4eaab2.zip
44214: <(...) substitutions shouldn't grab the terminal
-rw-r--r--ChangeLog3
-rw-r--r--Src/exec.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 82a7ebbf6..801d423a5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2019-04-10  Peter Stephenson  <p.stephenson@samsung.com>
 
+	* Eric Freese: 44214: Src/exec.c: <(...) substitutions shouldn't
+	grab the terminal.
+
 	* Roman Perepelitsa: 44215: Doc/Zsh/zle.yo,
 	Src/Zle/iwidgets.list, Src/Zle/zle.h, Src/Zle/zle_main.c,
 	Src/Zle/zle_thingy.c, Src/Zle/zle_utils.c, Src/Zle/zle_vi.c:
diff --git a/Src/exec.c b/Src/exec.c
index 79ef83c1e..6ac852112 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -4984,7 +4984,7 @@ getpipe(char *cmd, int nullexec)
 	procsubstpid = pid;
 	return pipes[!out];
     }
-    entersubsh(ESUB_PGRP, NULL);
+    entersubsh(ESUB_ASYNC|ESUB_PGRP, NULL);
     redup(pipes[out], out);
     closem(FDT_UNUSED, 0);	/* this closes pipes[!out] as well */
     cmdpush(CS_CMDSUBST);