diff options
author | schweikh <schweikh@FreeBSD.org> | 2003-09-13 06:59:22 +0000 |
---|---|---|
committer | schweikh <schweikh@FreeBSD.org> | 2003-09-13 06:59:22 +0000 |
commit | b4c9280f17fa9ca10057e3e027eb97d646f08c4d (patch) | |
tree | 2636459d55e2798bdec6950317107b1e2591db26 /bin | |
parent | 67475622c3e1726e9abdfdf59c37bae5abd1457c (diff) | |
download | FreeBSD-src-b4c9280f17fa9ca10057e3e027eb97d646f08c4d.zip FreeBSD-src-b4c9280f17fa9ca10057e3e027eb97d646f08c4d.tar.gz |
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.
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/sh/mkbuiltins | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/sh/mkbuiltins b/bin/sh/mkbuiltins index 4ba301c..d91cd91 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 |