"tail -f file" with "mv file file2" does not show changes to file2

Bug #1169580 reported by Lari Sinisalo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
coreutils (Ubuntu)
Confirmed
Undecided
Unassigned

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)'

Tags: bot-comment
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. It seems that your bug report is not filed about a specific source package though, rather it is just filed against Ubuntu in general. It is important that bug reports be filed about source packages so that people interested in the package can find the bugs about it. You can find some hints about determining what package your bug might be about at https://wiki.ubuntu.com/Bugs/FindRightPackage. You might also ask for help in the #ubuntu-bugs irc channel on Freenode.

To change the source package that this bug is filed about visit https://bugs.launchpad.net/ubuntu/+bug/1169580/+editstatus and add the package name in the text box next to the word Package.

[This is an automated message. I apologize if it reached you inappropriately; please just reply to this message indicating so.]

tags: added: bot-comment
affects: ubuntu → coreutils (Ubuntu)
Revision history for this message
Andrew McCarthy (andrewmccarthy) wrote :

Upstream bug (marked "Done") is at http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19760

Changed in coreutils (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.