Editing Hard Linked Files in Emacs

David Kramer david-8uUts6sDVDvs2Lz0fTdYFQ at public.gmane.org
Fri Dec 26 22:08:32 EST 2008


jbk wrote:
> jbk wrote:
>> How do you maintain the hardlink when saving with emacs? 
>> Version control? VI won't do.
>>
> Well I guess you all are stumped or to busy with the new toys.

Well, I didn't get much help either, but I'm assuming it's the holidays.

> My work around is to edit the original and save as another then:
> 
> cat <saveAs> > <originalFile>
> 
> this works for now.

I didn't answer because I don't understand the problem.  Are you talking
about files that are the same inodes, as created by "ln" without the the
"-s" option?  How could emacs (or any program) possibly change the
contents of one without changing the contents of the other, since they
point to the same spot on the disk?

Can you explain the problem in greater detail?






More information about the Discuss mailing list