sh: Allow a background command consisting solely of redirections.

Example:
  </dev/null &

MFC after:	2 weeks
This commit is contained in:
jilles 2010-07-18 12:45:31 +00:00
parent 23a42882e5
commit 8be68756a9
2 changed files with 4 additions and 0 deletions

View File

@ -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:

View File

@ -0,0 +1,3 @@
# $FreeBSD$
</dev/null &
wait $!