"tail -f file" with "mv file file2" does not show changes to file2
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-
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-
affects: | ubuntu → coreutils (Ubuntu) |
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/ FindRightPackag e. 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.]