henrikpersson/rsub

File are truncated

kayleg opened this issue · 2 comments

When working with long files, they are truncated at different lengths when saved.

Edit: Only occurs with the bash script, ruby seems fine

Cant find ruby script, and I've having the same problem...and a solution.

rmate.sh reads the file with using dd with args: bs=$value count=1
...I think that's running into system limitations with large values of bs. I switched it to bs=1 count=$value and it seems to work fine. Maybe it's less efficient? I dunno, but way better than saving a file and later discovering that it only saved the first third of it...

This is indeed an issue in the bash script's use of dd, not in rsub. I have sent a fix: aurora/rmate#7