From 9e4656f7e836d752db50a8890517fd356e5ce427 Mon Sep 17 00:00:00 2001 From: Jens Schweikhardt Date: Sat, 13 Sep 2003 06:59:22 +0000 Subject: [PATCH] Do not assume there is only a space between #define and the macro name when grepping for JOBS. The recent style cleanup replaced the space with a tab and broke job control detection. Little edits, disastrous consequences. Submitted by: Peter Edwards X-MFC when: in about 5 weeks with the other sh arithmetic fixes. --- bin/sh/mkbuiltins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/sh/mkbuiltins b/bin/sh/mkbuiltins index 4ba301c250d..d91cd91d49e 100755 --- a/bin/sh/mkbuiltins +++ b/bin/sh/mkbuiltins @@ -39,7 +39,7 @@ temp=`/usr/bin/mktemp -t ka` havejobs=0 -if grep '^#define JOBS[ ]*1' shell.h > /dev/null +if grep '^#define[ ]*JOBS[ ]*1' shell.h > /dev/null then havejobs=1 fi havehist=1