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 $!
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to