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 <pmedwards@eircom.net>
X-MFC when:	    in about 5 weeks with the other sh arithmetic fixes.
This commit is contained in:
schweikh 2003-09-13 06:59:22 +00:00
parent 67475622c3
commit b4c9280f17

View File

@ -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