mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-21 17:25:09 +00:00
sh: Allow a background command consisting solely of redirections.
Example: </dev/null & MFC after: 2 weeks
This commit is contained in:
parent
3ea270e878
commit
cac4830ce4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=210221
|
@ -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:
|
||||
|
|
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…
Reference in a new issue