aplicando modificacao https://github.com/2sidedfigure/tail/commit/83adfd116826f480fa47364b12ba8991380e3979  caso de teste relacionado