Brad C. wrote: > While working on a script to manage dumps from a subversion repository > of mine, I found that when I used a File.open block to work with the > stream returned by svnadmin dump, I would get errors regarding a > malformed header in the dump file. For instance: > > # The following block results in bad dump files, not accepted by > svnadmin load > File.open("path/to/todays/dumpfile", "a") do |file| > file << `svnadmin dump "path/to/repository" -r #{revision} > --incremental` > end > > # However, a strait command expression does work, like > `svnadmin dump "path/to/repository" -r #{revision} --incremental >> > "path/to/todays/dumpfile"` > > Might anyone know why the use of a File.open block would result in a > dump file not accepted by svnadmin load, while a strait command > expression works? I tried using the << and write methods of File, but > still no luck. Perhaps I don't understand a more appropriate way to > write the stream? > > Thanks for taking a look. > Brad > I'm only guessing but the different file size suggests that our old friend LF vs. CR/LF rears its ugly head again. Pia Kraft