Martin Krischik wrote:

> Am Donnerstag, 30. November 2006 11:29 schrieb Bram Moolenaar:
> 
> > I just got a note that patch 7.0.171, which fixes problems with writing
> > a file that has multiple directories, causes a new problem: swap files
> > are left behind.  Zoltan Arpadffy will try to come up with a solution,
> > but that will take a few days.
> >
> > Until then, if you are using VMS you may want to back out patch 7.0.171.
> > Or send us a fix!
> 
> Dam - it was an important Fix I was waiting for. For those who don't
> know: VMS has the search mechanism used for ${PATH},
> ${LD_LIBRARY_PATH} or ${INCLUDE} build into to core of the operating
> system. So in VMS you can say:
> 
> gvim INCLUDE:stdio.h
> 
> which would be the equivalent (in unix speak) of:
> 
> gvim ${INCLUDE}/stdio.h
> 
> Of corse in Unix that won't work because the shell would expand ${INCLUDE} 
> and 
> sends a rather wacky commandline to gvim. Yet another point to the critics of 
> shell expansion I guess.
> 
> On VMS it is fopen() which expand the variable and it works - gvim will open 
> the file ok - only when you save it all goes wrong as gvim will then save to 
> the first path mentioned in INCLUDE.

I think the problem with the swap file is that it uses the wrong
directory from the search path.  That works OK until the name is
expanded to a full path afterwards, it won't be deleted then.  This
probably requires expanding the path before creating the swap file.
Unfortunately I can't try it out, thus I'll leave fixing this to someone
with access to a VMS system.  There are not many...

-- 
Q: Is selling software the same as selling hardware?
A: No, good hardware is sold new, good software has already been used by many.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

Reply via email to