> grep -n FILE build/bash-4.0/externs.h
> 200:extern int fpurge __P((FILE *stream));
> 264:extern int sh_setlinebuf __P((FILE *));
>
> bash-4.0/externs.h
>
> needs
>
> #include
Try the attached patch. Including stdio.h in externs.h is the wrong fix.
Chet
*** ../bash-4.0-patched/externs.h
When you are sourcing bash script, which contains \0 character, bash
thinks it is end of file.
I have investigated, that `source' loads entire file into memory as
string. Then \0 is end of this string.
One of the possible solution is to left out all \0 characters. This
doesn't seem to be perfect