GNU bug report logs -
#16718
bug in vi on linux
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 16718 in the body.
You can then email your comments to 16718 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-coreutils <at> gnu.org
:
bug#16718
; Package
coreutils
.
(Tue, 11 Feb 2014 02:32:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Cheng Ong <Cheng.Ong <at> brisbane.qld.gov.au>
:
New bug report received and forwarded. Copy sent to
bug-coreutils <at> gnu.org
.
(Tue, 11 Feb 2014 02:32:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi there,
Just encountered a bug in VI.
Editing file 'x' using vi, when done, content of file 'x' was saved as well in file 'y'.
File 'y' has no relation to file 'x' and is sitting in a different directory.
Only relation was file 'x' was created through a cp command from file 'y'.
Now changes made either on file 'y' or 'x' appear in both files.
Regards
Cheng Ong
Technical Consultant - Customised Applications, Service Delivery | Information Services Branch
Organisational Services Division | BRISBANE CITY COUNCIL
...........................................................................................................
Level G Green Square, 505 St Paul's Terrace, Fortitude Valley, Qld 4006
Phone: +61-7-3027 5286
Email: Cheng.Ong <at> brisbane.qld.gov.au<mailto:Cheng.Ong <at> brisbane.qld.gov.au>
[Description: Description: cid:image001.gif <at> 01CDC957.A0FF5C40]<http://www.brisbane.qld.gov.au/> [Description: Description: cid:image002.png <at> 01CDC957.A0FF5C40] <http://www.facebook.com/BrisbaneCityCouncil> [Description: Description: cid:image003.png <at> 01CDC957.A0FF5C40] <http://twitter.com/brisbanecityqld> [Description: Description: cid:image004.png <at> 01CDC957.A0FF5C40] <http://www.youtube.com/user/BrisbaneCityCouncil>
****************************************************
This message has passed through an insecure network.
Please direct all enquiries to the message author.
****************************************************
[Message part 2 (text/html, inline)]
[image001.gif (image/gif, inline)]
[image002.png (image/png, inline)]
[image003.png (image/png, inline)]
[image004.png (image/png, inline)]
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#16718
; Package
coreutils
.
(Tue, 11 Feb 2014 04:45:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 16718 <at> debbugs.gnu.org (full text, mbox):
On 11/02/14 12:02, Cheng Ong wrote:
> Just encountered a bug in VI.
> Editing file 'x' using vi, when done, content of file 'x' was saved as well in file 'y'.
> File 'y' has no relation to file 'x' and is sitting in a different directory.
> Only relation was file 'x' was created through a cp command from file 'y'.
> Now changes made either on file 'y' or 'x' appear in both files.
Are you sure that they are not symbolic or hard links? I.e. made using
'cp -s' or 'cp -l'?
Allan
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#16718
; Package
coreutils
.
(Tue, 11 Feb 2014 09:29:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 16718 <at> debbugs.gnu.org (full text, mbox):
tag 16718 notabug
close 16718
stop
On 02/11/2014 02:02 AM, Cheng Ong wrote:
> Hi there,
>
> Just encountered a bug in VI.
> Editing file 'x' using vi, when done, content of file 'x' was saved as well in file 'y'.
> File 'y' has no relation to file 'x' and is sitting in a different directory.
> Only relation was file 'x' was created through a cp command from file 'y'.
> Now changes made either on file 'y' or 'x' appear in both files.
I'm guessing you linked the file names.
http://vim.wikia.com/wiki/Editing_a_hard_link_to_a_file
If you can repeat this without specifying any options to cp,
then it might be a bug in cp, but it's quite unlikely,
so I'm closing this for now.
These commands should verify:
env cp x y
[ $(stat -c %i x y | uniq | wc -l) = 1 ] && echo possible cp bug
cp --version
thanks,
Pádraig.
Information forwarded
to
bug-coreutils <at> gnu.org
:
bug#16718
; Package
coreutils
.
(Tue, 11 Feb 2014 19:01:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 16718 <at> debbugs.gnu.org (full text, mbox):
Pádraig Brady wrote:
> Cheng Ong wrote:
> > File 'y' has no relation to file 'x' and is sitting in a different directory.
When reporting please show us the details. Because we have heard this
before! :-) Everyone expects to see that the files are linked until
proven otherwise.
For this please run this command and show the information for those
files.
ls -ldi path1/x path2/y
The first field is the inode number produced due to the inclusion of
the -i option. If the number is the same number on both files then
the file is hard linked. (Assuming both files are on the same file
system.) Otherwise if one is a symlink then that will also be shown.
Bob
Added tag(s) notabug.
Request was from
Assaf Gordon <assafgordon <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Thu, 11 Oct 2018 22:16:04 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
16718 <at> debbugs.gnu.org and Cheng Ong <Cheng.Ong <at> brisbane.qld.gov.au>
Request was from
Assaf Gordon <assafgordon <at> gmail.com>
to
control <at> debbugs.gnu.org
.
(Thu, 11 Oct 2018 22:16:04 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Fri, 09 Nov 2018 12:24:06 GMT)
Full text and
rfc822 format available.
This bug report was last modified 6 years and 283 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.