summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorkabe@sra-tohoku.co.jp <kabe@sra-tohoku.co.jp>2014-12-22 14:50:23 +0900
committerHerbert Xu <herbert@gondor.apana.org.au>2014-12-26 09:50:59 +1100
commit35ff4d5b5a44aaf6fd98edef221dcc3ddcb8dda4 (patch)
tree52f97a68be4453409c8a497c221ab6093f1ff0e9 /src
parentman: Clarify two redirection mechanisms (diff)
downloaddash-35ff4d5b5a44aaf6fd98edef221dcc3ddcb8dda4.tar.gz
dash-35ff4d5b5a44aaf6fd98edef221dcc3ddcb8dda4.zip
builtin: create builtins.c properly on old cpp
Encontered this on ancient gcc-2.95.3 environment;
src/builtins.def.in -> src/builtins.def generation emitted
^ $
lines (likely by /* */), which where NOT ignored by
src/mkbuiltins and generating bogus builtins.c.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '')
-rw-r--r--src/mkbuiltins2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mkbuiltins b/src/mkbuiltins
index f562ae2..f412a41 100644
--- a/src/mkbuiltins
+++ b/src/mkbuiltins
@@ -69,7 +69,7 @@ cat <<\!
 #include "builtins.h"
 
 !
-< $builtins sed '/^#/d; /^$/d' > $temp
+< $builtins sed '/^#/d; /^ *$/d' > $temp
 awk '{	printf "int %s(int, char **);\n", $1}' $temp
 echo '
 const struct builtincmd builtincmd[] = {'