Re: [jasspa] Problem editing file with multiple links
- Hello Steven,
This file wasn't a symbolic link, it was a regular link. With a
regular link, the same inode is referenced by multiple directory
entries. By first renaming the file, the other directory entries are
now pointing to the renamed file. This breaks the intended linkage.
Friday, October 16, 2009, 2:04:07 PM, you wrote:
SP> Problem here is that copy often changes the properties of the file, from
SP> date create & last modified to file permissions, and this properties
SP> would then be permanently lost as the newly created file of the same
SP> name would not inherit these properties (and rightly so). So ME
SP> currently does the right thing.
SP> But the question I have is what platform are you using? Every unix
SP> system I have used would not modify a symbolic link if the file it
SP> pointed to was renamed, it would simply leave it dangling, this looks
SP> more like a broken OS, trying to be too smart, than an ME bug!
SP> Jonathan B. Bayer wrote:
>> Hello Jasspa,SP> ------------------------------------
>> I just ran into a situation where I had to edit a shell script with
>> multiple links. The edit worked, but when it saved the file, it broke
>> the links. The original link was renamed with a tilde at the end, and
>> it saved the edited file as a new file.
>> This is a problem, how can I stop this from happening. I'd like to
>> change it so that it copies the original, and then saves the file over
>> the original.
>> Thanks in advance
>> Jonathan B. Bayer
>> This is an unmoderated list, but new members are moderated to ensure that there are no spam users. JASSPA is not responsible for the content of
>> any material posted to this list.
>> To un-subscribe, send a mail message to
>> or visit http://groups.yahoo.com/group/jasspa and
>> modify your account settings manually.
>> Yahoo! Groups Links
SP> This is an unmoderated list, but new members are moderated to
SP> ensure that there are no spam users. JASSPA is not responsible for the content of
SP> any material posted to this list.
SP> To un-subscribe, send a mail message to
SP> or visit http://groups.yahoo.com/group/jasspa and
SP> modify your account settings manually.
SP> Yahoo! Groups Links
Jonathan B. Bayer