about summary refs log tree commit diff
path: root/Src/exec.c
diff options
context:
space:
mode:
authorPeter Stephenson <p.stephenson@samsung.com>2023-02-14 09:21:19 +0000
committerPeter Stephenson <p.stephenson@samsung.com>2023-02-14 09:21:32 +0000
commit7e0c4406ceba1e021bf37680d6a6b8dcd3dd657f (patch)
tree25403174293198d6f5bebe00597cab2d5ec928ae /Src/exec.c
parent03887bb03fbca246fa94b5b5f2266572c0b6d038 (diff)
downloadzsh-7e0c4406ceba1e021bf37680d6a6b8dcd3dd657f.tar.gz
zsh-7e0c4406ceba1e021bf37680d6a6b8dcd3dd657f.tar.xz
zsh-7e0c4406ceba1e021bf37680d6a6b8dcd3dd657f.zip
51424: $(<...) shouldn't try to open a file with NO_EXEC
Diffstat (limited to 'Src/exec.c')
-rw-r--r--Src/exec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Src/exec.c b/Src/exec.c
index c8eb71b34..3330bbce8 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -4678,6 +4678,9 @@ getoutput(char *cmd, int qt)
     if (!prog)
 	return NULL;
 
+    if (!isset(EXECOPT))
+	return newlinklist();
+
     if ((s = simple_redir_name(prog, REDIR_READ))) {
 	/* $(< word) */
 	int stream;