diff options
| author | Peter Stephenson <p.stephenson@samsung.com> | 2023-02-14 09:21:19 +0000 |
|---|---|---|
| committer | Peter Stephenson <p.stephenson@samsung.com> | 2023-02-14 09:21:32 +0000 |
| commit | 7e0c4406ceba1e021bf37680d6a6b8dcd3dd657f (patch) | |
| tree | 25403174293198d6f5bebe00597cab2d5ec928ae /Src/exec.c | |
| parent | 51430: Misc. problems with typeset and $parameters (diff) | |
| download | zsh-7e0c4406ceba1e021bf37680d6a6b8dcd3dd657f.tar zsh-7e0c4406ceba1e021bf37680d6a6b8dcd3dd657f.tar.gz zsh-7e0c4406ceba1e021bf37680d6a6b8dcd3dd657f.tar.bz2 zsh-7e0c4406ceba1e021bf37680d6a6b8dcd3dd657f.tar.lz zsh-7e0c4406ceba1e021bf37680d6a6b8dcd3dd657f.tar.xz zsh-7e0c4406ceba1e021bf37680d6a6b8dcd3dd657f.tar.zst 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.c | 3 |
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; |
