sh: Allow a background command consisting solely of redirections.
Example: </dev/null & MFC after: 2 weeks
This commit is contained in:
parent
23a42882e5
commit
8be68756a9
@ -554,6 +554,7 @@ TRACE(("expecting DO got %s %s\n", tokname[got], got == TWORD ? wordtext : ""));
|
|||||||
checkkwd = 1;
|
checkkwd = 1;
|
||||||
break;
|
break;
|
||||||
/* Handle an empty command like other simple commands. */
|
/* Handle an empty command like other simple commands. */
|
||||||
|
case TBACKGND:
|
||||||
case TSEMI:
|
case TSEMI:
|
||||||
case TAND:
|
case TAND:
|
||||||
case TOR:
|
case TOR:
|
||||||
|
3
tools/regression/bin/sh/parser/only-redir1.0
Normal file
3
tools/regression/bin/sh/parser/only-redir1.0
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# $FreeBSD$
|
||||||
|
</dev/null &
|
||||||
|
wait $!
|
Loading…
x
Reference in New Issue
Block a user