Date: Sun, 18 Jul 2010 12:45:32 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r210221 - in head: bin/sh tools/regression/bin/sh/parser Message-ID: <201007181245.o6ICjWRJ051706@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jilles Date: Sun Jul 18 12:45:31 2010 New Revision: 210221 URL: http://svn.freebsd.org/changeset/base/210221 Log: sh: Allow a background command consisting solely of redirections. Example: </dev/null & MFC after: 2 weeks Added: head/tools/regression/bin/sh/parser/only-redir1.0 (contents, props changed) Modified: head/bin/sh/parser.c Modified: head/bin/sh/parser.c ============================================================================== --- head/bin/sh/parser.c Sun Jul 18 11:13:36 2010 (r210220) +++ head/bin/sh/parser.c Sun Jul 18 12:45:31 2010 (r210221) @@ -554,6 +554,7 @@ TRACE(("expecting DO got %s %s\n", tokna checkkwd = 1; break; /* Handle an empty command like other simple commands. */ + case TBACKGND: case TSEMI: case TAND: case TOR: Added: head/tools/regression/bin/sh/parser/only-redir1.0 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/tools/regression/bin/sh/parser/only-redir1.0 Sun Jul 18 12:45:31 2010 (r210221) @@ -0,0 +1,3 @@ +# $FreeBSD$ +</dev/null & +wait $!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007181245.o6ICjWRJ051706>