sh: Allow a background command consisting solely of redirections.

Example:
  </dev/null &

MFC after:	2 weeks
This commit is contained in:
Jilles Tjoelker 2010-07-18 12:45:31 +00:00
parent 3ea270e878
commit cac4830ce4
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210221
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 $!