aboutsummaryrefslogtreecommitdiff
path: root/bin/sh/eval.c
diff options
context:
space:
mode:
authorsvn2git <svn2git@FreeBSD.org>1994-05-01 08:00:00 +0000
committersvn2git <svn2git@FreeBSD.org>1994-05-01 08:00:00 +0000
commita16f65c7d117419bd266c28a1901ef129a337569 (patch)
tree2626602f66dc3551e7a7c7bc9ad763c3bc7ab40a /bin/sh/eval.c
parent8503f4f13f77abf7adc8f7e329c6f9c1d52b6a20 (diff)
Diffstat (limited to 'bin/sh/eval.c')
-rw-r--r--bin/sh/eval.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/sh/eval.c b/bin/sh/eval.c
index 718876e95b50..d6bd1296291d 100644
--- a/bin/sh/eval.c
+++ b/bin/sh/eval.c
@@ -521,7 +521,10 @@ evalbackcmd(n, result)
result->buf = NULL;
result->nleft = 0;
result->jp = NULL;
- if (n->type == NCMD) {
+ /* No command inside the backqotes, so do nothing. */
+ if (n == NULL)
+ ;
+ else if (n->type == NCMD) {
evalcommand(n, EV_BACKCMD, result);
} else {
if (pipe(pip) < 0)