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:
parent
67475622c3
commit
b4c9280f17
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user