Topic: Hardlinks (1 of 5), Read 21 times
Conf: VEDIT Suggestions
From: Ian Binnie
Date: Sunday, June 01, 2008 08:35 PM

Vedit and Hardlinks

When vedit edits a file which is the target of a hardlink it breaks the link.
All the other attributes/dates are restored.

I believe this is because vedit creates a new output file, then deletes the original.
This works OK on FAT32, but not on NTFS.

Notepad actually edits the target of the hardlink.

 


Topic: Re: Hardlinks (2 of 5), Read 24 times
Conf: VEDIT Suggestions
From: Ted Green
Date: Monday, June 02, 2008 12:27 AM

At 08:36 PM 6/1/2008, you wrote:
>From: Ian Binnie
>
>Vedit and Hardlinks
>
>When vedit edits a file which is the target of a hardlink it breaks the link.
>All the other attributes/dates are restored.
>
>I believe this is because vedit creates a new output file, then deletes the original.
>This works OK on FAT32, but not on NTFS.
>
>Notepad actually edits the target of the hardlink.

I believe that the under-documented "-f" invocation option will edit the target directly.

Also, due to a fire at one of "The Planet" datacenters (which took out 10,000 servers), the vedit.com website is currently down. (Actually the Name server for vedit.com and vedit.net was affected.) We will move all vedit related domains to our highly redundant SpamStopsHere name servers on Monday.

Ted.

 


Topic: Re: Hardlinks (3 of 5), Read 26 times
Conf: VEDIT Suggestions
From: Ian Binnie
Date: Monday, June 02, 2008 04:08 AM

On 6/2/2008 12:27:20 AM, Ted Green wrote:
>At 08:36 PM 6/1/2008, you
>wrote:
>>From: Ian Binnie
>>
>>Vedit and Hardlinks
>>
>>When vedit edits a file which is the target of a hardlink it breaks the link.
>>All the other attributes/dates are restored.
>>
>>I believe this is because vedit creates a new output file, then deletes the original.
>>This works OK on FAT32, but not on NTFS.
>>
>>Notepad actually edits the target of the hardlink.
>
>I believe that the
>under-documented "-f"
>invocation option will edit
>the target directly.
>
>Also, due to a fire at one of
>"The Planet" datacenters
>(which took out 10,000
>servers), the vedit.com
>website is currently down.
>(Actually the Name server for
>vedit.com and vedit.net was
>affected.) We will move all
>vedit related domains to our
>highly redundant SpamStopsHere
>name servers on Monday.
>
>Ted.

Thanks Ted, this seems to work.
I will certainly build into my Visual Studio startup for Vedit.

I would like to understand the syntax.

Is this a per file or global option.

It is certainly an "under-documented" option ;)
I could find no mention in the help, new-cmds.txt, whatsnew.txt or vedit60.pdf

 


Topic: Re: Hardlinks - "-f" invocation option (4 of 5), Read 26 times
Conf: VEDIT Suggestions
From: Ted Green
Date: Monday, June 02, 2008 09:24 PM

At 04:09 AM 6/2/2008, you wrote:
>>I believe that the under-documented "-f" invocation option will edit the target directly.
>
>Thanks Ted, this seems to work.
>I will certainly build into my Visual Studio startup for Vedit.
>
>I would like to understand the syntax.
>
>Is this a per file or global option.

It is currently a global option.

>It is certainly an "under-documented" option ;)
>I could find no mention in the help, new-cmds.txt, whatsnew.txt or vedit60.pdf

Sorry, I could not find any doco on it either, although it was probably discussed in this forum many years ago. (The "-f" was the default in the old XENIX/QNX versions to save file permissions.)

Note that "-f" is slower - instead of just renaming files during the close, I need to copy the temp file to overwrite the original file.

I will document it, and make it a buffer-dependent config option. Perhaps even an option on the File_Open() command, but probably not in the (already complex) File-open dialog box.

Ted.

 


Topic: Re: Hardlinks - "-f" invocation option (5 of 5), Read 24 times
Conf: VEDIT Suggestions
From: Ted Green
Date: Monday, June 02, 2008 09:24 PM

At 04:09 AM 6/2/2008, you wrote:
>>I believe that the under-documented "-f" invocation option will edit the target directly.
>
>Thanks Ted, this seems to work.
>I will certainly build into my Visual Studio startup for Vedit.
>
>I would like to understand the syntax.
>
>Is this a per file or global option.

It is currently a global option.

>It is certainly an "under-documented" option ;)
>I could find no mention in the help, new-cmds.txt, whatsnew.txt or vedit60.pdf

Sorry, I could not find any doco on it either, although it was probably discussed in this forum many years ago. (The "-f" was the default in the old XENIX/QNX versions to save file permissions.)

Note that "-f" is slower - instead of just renaming files during the close, I need to copy the temp file to overwrite the original file.

I will document it, and make it a buffer-dependent config option. Perhaps even an option on the File_Open() command, but probably not in the (already complex) File-open dialog box.

Ted.