Fix the borokeness that crept in with rev 1.10 of parser.c, the sh

didn't correctly start background jobs anymore.  Strange that nobody
was complaining...

Add a dummy target for `builtins' in the Makefile, to prevent it
from attempting to build this file by compiling builtins.c. :-/
This commit is contained in:
Joerg Wunsch 1996-02-03 13:27:55 +00:00
parent 5bf1814b0e
commit 0f9a535124
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=13882
2 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,5 @@
# @(#)Makefile 8.1 (Berkeley) 6/8/93
# $Id: Makefile,v 1.7 1994/10/02 01:36:03 ache Exp $
# $Id: Makefile,v 1.8 1995/08/27 20:26:40 joerg Exp $
PROG= sh
SRCS= alias.c builtins.c cd.c echo.c error.c eval.c exec.c expand.c \
@ -23,6 +23,9 @@ CLEANFILES+=\
token.def: mktokens
sh ${.CURDIR}/mktokens
${.CURDIR}/builtins:
# just override the default rule
builtins.h builtins.c: ${.CURDIR}/mkbuiltins ${.CURDIR}/builtins
cd ${.CURDIR}; sh mkbuiltins

View File

@ -33,7 +33,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: parser.c,v 1.9 1995/08/28 19:24:35 joerg Exp $
* $Id: parser.c,v 1.10 1995/12/10 17:59:23 joerg Exp $
*/
#ifndef lint
@ -149,12 +149,12 @@ list(nlflag) {
n1 = andor();
for (;;) {
switch (readtoken()) {
case TBACKGND:
case TNL:
parseheredoc();
if (nlflag)
return n1;
/* fall through */
case TBACKGND:
case TSEMI:
checkkwd = 2;
if (tokendlist[peektoken()])