On Sun, Feb 23, 2014 at 11:39:29PM +0100, Bram Moolenaar wrote:
> 
> Patch 7.4.191
> Problem:    Escaping a file name for shell commands can't be done without a
>             function.
> Solution:   Add the :S file name modifier.

Test 105 doesn't work when a shadowdir is being used:

# Check if the test.out file matches test.ok.
6,7c6,7
< fnamemodify('test.out',       ':~'      )     '~/vim-nox/testdir/test.out'
< fnamemodify('../testdir/a',   ':~'      )     '~/vim-nox/testdir/a'
---
> fnamemodify('test.out',       ':~'      )     '~/src/testdir/test.out'
> fnamemodify('../testdir/a',   ':~'      )     '~/src/testdir/a'
16c16
< substitute(fnamemodify('abc.fb2.tar.gz', ':p:r:r'), '.*\(src/testdir/.*\)', 
'\1', '') '/path/to/vim/src/vim-nox/testdir/abc.fb2'
---
> substitute(fnamemodify('abc.fb2.tar.gz', ':p:r:r'), '.*\(src/testdir/.*\)', 
> '\1', '') 'src/testdir/abc.fb2'

Cheers,
-- 
James
GPG Key: 4096R/331BA3DB 2011-12-05 James McCoy <[email protected]>

-- 
-- 
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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui