Re: Re: Unpredictable behavior.

2008-07-10 Fir de Conversatie Ag. D. Hatzimanikas
Hi Andy, On Thu, Jul 10, at 08:58 Andy Wokula wrote: > > Hmm, from my testing: :redir works a bit strange. While you think > :echo "line" sends "line\n", actually "\nline" is redirected. That's > why you get a first empty line in the file and the final EOL is missing. > And readfile() doesn't

Re: Unpredictable behavior.

2008-07-10 Fir de Conversatie Andy Wokula
Ag. D. Hatzimanikas schrieb: > Hi, > > I was running a function, (say write()) to call redir to write in a > file and then another function, (say read()) to call readfile to read > the last entry from that same file, when I discovered that in every > second call to those functions, readfile coul

Unpredictable behavior.

2008-07-10 Fir de Conversatie Ag. D. Hatzimanikas
Hi, I was running a function, (say write()) to call redir to write in a file and then another function, (say read()) to call readfile to read the last entry from that same file, when I discovered that in every second call to those functions, readfile couldn't read the last line of the file, alth