From 0d0e497c693939633fda6cfa0c3269258b8e97ec Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Mon, 17 Nov 2008 16:56:41 +0000 Subject: 26056 "< <(...)more_stuff" etc. are errors --- Src/exec.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/exec.c b/Src/exec.c index a398211d3..5aec655a2 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -3773,9 +3773,14 @@ getpipe(char *cmd, int nullexec) int pipes[2], out = *cmd == Inang; pid_t pid; struct timeval bgtime; + char *ends; - if (!(prog = parsecmd(cmd, NULL))) + if (!(prog = parsecmd(cmd, &ends))) return -1; + if (*ends) { + zerr("invalid syntax for process substitution in redirection"); + return -1; + } mpipe(pipes); if ((pid = zfork(&bgtime))) { zclose(pipes[out]); -- cgit 1.4.1