summaryrefslogtreecommitdiffstats
path: root/bin/sh
diff options
context:
space:
mode:
authorjilles <jilles@FreeBSD.org>2010-07-18 12:45:31 +0000
committerjilles <jilles@FreeBSD.org>2010-07-18 12:45:31 +0000
commit8be68756a979b615d3116b3cf959bfdb0322ee14 (patch)
tree40970c92b59f194cd39ca07bd247fd0838b9a83c /bin/sh
parent23a42882e5d2123661a93a54d9cdf8ae70b7f674 (diff)
downloadFreeBSD-src-8be68756a979b615d3116b3cf959bfdb0322ee14.zip
FreeBSD-src-8be68756a979b615d3116b3cf959bfdb0322ee14.tar.gz
sh: Allow a background command consisting solely of redirections.
Example: </dev/null & MFC after: 2 weeks
Diffstat (limited to 'bin/sh')
-rw-r--r--bin/sh/parser.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/bin/sh/parser.c b/bin/sh/parser.c
index e55332e..9c89d9f 100644
--- a/bin/sh/parser.c
+++ b/bin/sh/parser.c
@@ -554,6 +554,7 @@ TRACE(("expecting DO got %s %s\n", tokname[got], got == TWORD ? wordtext : ""));
checkkwd = 1;
break;
/* Handle an empty command like other simple commands. */
+ case TBACKGND:
case TSEMI:
case TAND:
case TOR:
OpenPOWER on IntegriCloud