svn commit: r210732 - in stable/8: bin/sh tools/regression/bin/sh/parser

Jilles Tjoelker jilles at FreeBSD.org
Sun Aug 1 14:14:49 UTC 2010


Author: jilles
Date: Sun Aug  1 14:14:48 2010
New Revision: 210732
URL: http://svn.freebsd.org/changeset/base/210732

Log:
  MFC r210221: sh: Allow a bg command consisting solely of redirections.
  
  Example:
    </dev/null &

Added:
  stable/8/tools/regression/bin/sh/parser/only-redir1.0
     - copied unchanged from r210221, head/tools/regression/bin/sh/parser/only-redir1.0
Modified:
  stable/8/bin/sh/parser.c
Directory Properties:
  stable/8/bin/sh/   (props changed)
  stable/8/tools/regression/bin/sh/   (props changed)

Modified: stable/8/bin/sh/parser.c
==============================================================================
--- stable/8/bin/sh/parser.c	Sun Aug  1 12:35:01 2010	(r210731)
+++ stable/8/bin/sh/parser.c	Sun Aug  1 14:14:48 2010	(r210732)
@@ -477,6 +477,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:

Copied: stable/8/tools/regression/bin/sh/parser/only-redir1.0 (from r210221, head/tools/regression/bin/sh/parser/only-redir1.0)
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ stable/8/tools/regression/bin/sh/parser/only-redir1.0	Sun Aug  1 14:14:48 2010	(r210732, copy of r210221, head/tools/regression/bin/sh/parser/only-redir1.0)
@@ -0,0 +1,3 @@
+# $FreeBSD$
+</dev/null &
+wait $!


More information about the svn-src-all mailing list