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

2009-07-29 Thread Chet Ramey
> > This patch will delete all `\0' characters which are not at the end of > > sourced file. > > RR > Any update, comments, activity...? A solution will be in the next version of bash. Chet -- ``The lyf so short, the craft so long to lerne.'' - Chaucer Chet Ramey, ITS, CWRUc...@case.edu

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

2009-07-29 Thread Roman Rakus
On 06/16/2009 11:55 AM, Roman Rakus wrote: On 06/02/2009 01:33 PM, Roman Rakus wrote: 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

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

2009-06-16 Thread Roman Rakus
On 06/02/2009 01:33 PM, Roman Rakus wrote: 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

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