Date: Sun, 1 Aug 2010 14:14:48 +0000 (UTC) From: Jilles Tjoelker <jilles@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org Subject: svn commit: r210732 - in stable/8: bin/sh tools/regression/bin/sh/parser Message-ID: <201008011414.o71EEmus024426@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 $!
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008011414.o71EEmus024426>