diff options
| author | svn2git <svn2git@FreeBSD.org> | 1994-05-01 08:00:00 +0000 |
|---|---|---|
| committer | svn2git <svn2git@FreeBSD.org> | 1994-05-01 08:00:00 +0000 |
| commit | a16f65c7d117419bd266c28a1901ef129a337569 (patch) | |
| tree | 2626602f66dc3551e7a7c7bc9ad763c3bc7ab40a /bin/sh/eval.c | |
| parent | 8503f4f13f77abf7adc8f7e329c6f9c1d52b6a20 (diff) | |
Diffstat (limited to 'bin/sh/eval.c')
| -rw-r--r-- | bin/sh/eval.c | 5 |
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) |
