Re: is missing in bash-4.0/externs.h

2009-06-02 Thread Chet Ramey
> 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

Cannot process scripts beyond an embedded NULL character when running in 'source' mode

2009-06-02 Thread Roman Rakus
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