From 7e0c4406ceba1e021bf37680d6a6b8dcd3dd657f Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 14 Feb 2023 09:21:19 +0000 Subject: 51424: $(<...) shouldn't try to open a file with NO_EXEC --- Src/exec.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Src/exec.c') 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; -- cgit 1.4.1