On Wed, Aug 11, 2010 at 12:04 PM, Nazri Ramliy <[email protected]> wrote:
> On Wed, Aug 11, 2010 at 1:58 AM, Bram Moolenaar <[email protected]> wrote:
>>
>> The full path names are not nice.  Not only for the test but also for
>> interactive use.  I think we should replace the current directory with
>> "./" when possible.
>
> Thanks for pointing this out.  Attached patch does the above, and test73
> passes for both unix and msvc-vim with this patch.
>
> I'm having trouble running test73 with djgpp vim because somehow it
> failed at creating the "Xfind" directory.
>
> I commented out the final ":qa!" in test73.vim, rerun the test and wait
> until it stops at the end and issued
>
>    :!mkdir foo
>
> from inside the running djgpp-vim, which failed with error message:
>
>    shell returned -1
>
> Any idea why this could be?
>
> Also:
>
>    :pwd
>    c:\src\vim\src
>
> I was expecting it to be "c:\src\vim\src\testdir".
>

Another note: to make test73 works with djgpp-vim, I think we need
to add has("dos16") || has("dos32") in the DeleteDirectory() function.

As for the failing ":!mkdir" command, I tracked this down to 'shell' being
set to "cmd.exe" by dos.vim during the test.

I did

    :set shell=c:\windows\system32\cmd.exe
    :!mkdir foo

drops me into the cmd.exe shell (instead of creating the directory).

I looked at mch_call_shell in os_msdos.c but I'm not sure how to fix
this without breaking backward compatibility.

nazri.

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui