about summary refs log tree commit diff
path: root/Src/exec.c
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2014-11-23 16:02:48 -0800
committerBarton E. Schaefer <schaefer@zsh.org>2014-11-23 16:02:48 -0800
commit2b615bedaff1d64a1521972717a91058c74b579f (patch)
tree4027c546fe99cdbc1adb76d1542b1db81245424d /Src/exec.c
parenta526a2203b26cb6b9d3546b92761f3b2217805ef (diff)
downloadzsh-2b615bedaff1d64a1521972717a91058c74b579f.tar.gz
zsh-2b615bedaff1d64a1521972717a91058c74b579f.tar.xz
zsh-2b615bedaff1d64a1521972717a91058c74b579f.zip
33775: error opening file in $(<...) is not fatal
Diffstat (limited to 'Src/exec.c')
-rw-r--r--Src/exec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/exec.c b/Src/exec.c
index 042215d34..02a8fe3ad 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -3840,8 +3840,8 @@ getoutput(char *cmd, int qt)
 	    return NULL;
 	untokenize(s);
 	if ((stream = open(unmeta(s), O_RDONLY | O_NOCTTY)) == -1) {
-	    zerr("%e: %s", errno, s);
-	    return NULL;
+	    zwarn("%e: %s", errno, s);
+	    return newlinklist();
 	}
 	return readoutput(stream, qt);
     }