Eric Kever tenshi.sai...@gmail.com writes:
I've created a file 'foo', and used tail -f to follow the changes to that
file.
I then wrote 'test' to the file and saved it, and tail reported 'test',
which is fine.
I then deleted 'test' and saved the file, and tail reported 'tail: foo:
file truncated', which is fine.
I then wrote 'test' again and saved the file, and tail reported 'est'
instead of 'test'.
That's not a bug. When you truncated the file you actually wrote a
single newline, so the current position became one character into the
file. The fact that the next modification overwrote the newline (with
`t') wasn't noticed by tail, because it only watches for modifications
after the current end-of-file.
Try using an editor that actually allows you to write an empty file (or
use ` foo' in the shell).
Andreas.
--
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
And now for something completely different.