touch-packages team mailing list archive
-
touch-packages team
-
Mailing list archive
-
Message #127468
[Bug 1169580] Re: "tail -f file" with "mv file file2" does not show changes to file2
Upstream bug (marked "Done") is at
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19760
** Changed in: coreutils (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to coreutils in Ubuntu.
https://bugs.launchpad.net/bugs/1169580
Title:
"tail -f file" with "mv file file2" does not show changes to file2
Status in coreutils package in Ubuntu:
Confirmed
Bug description:
The manual page of tail states the following:
With --follow (-f), tail defaults to following the file descriptor,
which means that even if a tail'ed file is renamed, tail will continue
to track its end.
However, the following command sequence does not behave like that:
touch file
tail -f file &
mv file file2
echo "text" >> file2
In this case, tail does not show any output. However, tail shows the
"text" properly when run on a Solaris server. This indicates that tail
does behave like its manual page states in some versions.
System version: Ubuntu 12.04.2 LTS
touch version: touch (GNU coreutils) 8.13
tail version: tail (GNU coreutils) 8.13
mv version: mv (GNU coreutils) 8.13
bash version: GNU bash, version 4.2.24(1)-release (x86_64-pc-linux-gnu)
On the Solaris server that behaves correctly, each are '(GNU coreutils) 6.7' except bash which is 'GNU bash, version 3.2.25(1)-release (sparc-sun-solaris2.11)'
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/coreutils/+bug/1169580/+subscriptions