RT points out there may be a tab inside the NSIG expansion

This commit is contained in:
tg 2012-05-04 21:33:14 +00:00
parent cb7dc2b45b
commit bc61602efc
1 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
#!/bin/sh
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.555 2012/05/04 21:30:06 tg Exp $'
srcversion='$MirOS: src/bin/mksh/Build.sh,v 1.556 2012/05/04 21:33:14 tg Exp $'
#-
# Copyright (c) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,
# 2011, 2012
@ -1398,7 +1398,7 @@ else
#define EXTERN
#define MKSH_INCLUDES_ONLY
#include "sh.h"
__RCSID("$MirOS: src/bin/mksh/Build.sh,v 1.555 2012/05/04 21:30:06 tg Exp $");
__RCSID("$MirOS: src/bin/mksh/Build.sh,v 1.556 2012/05/04 21:33:14 tg Exp $");
int main(void) { printf("Hello, World!\n"); return (0); }
EOF
case $cm in
@ -1781,7 +1781,7 @@ mksh_cfg= NSIG
# GNU sed 2.03 segfaults when optimising this to sed -n
NSIG=`vq "$CPP $CFLAGS $CPPFLAGS $NOWARN conftest.c" | \
grep '^mksh_cfg *=[ ]*[0-9x ()+-]*.*$' | \
sed 's/^mksh_cfg *=[ ]*\([0-9x ()+-]*\).*$/\1/'`
sed 's/^mksh_cfg *=[ ]*\([0-9x ()+-][0-9x ()+-]*\).*$/\1/'`
case $NSIG in
*[\ \(\)+-]*) NSIG=`"$AWK" "BEGIN { print $NSIG }"` ;;
esac