Karsten Hopp 26fa7a
To: vim_dev@googlegroups.com
Karsten Hopp 26fa7a
Subject: Patch 7.4.220
Karsten Hopp 26fa7a
Fcc: outbox
Karsten Hopp 26fa7a
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp 26fa7a
Mime-Version: 1.0
Karsten Hopp 26fa7a
Content-Type: text/plain; charset=UTF-8
Karsten Hopp 26fa7a
Content-Transfer-Encoding: 8bit
Karsten Hopp 26fa7a
------------
Karsten Hopp 26fa7a
Karsten Hopp 26fa7a
Patch 7.4.220
Karsten Hopp 26fa7a
Problem:    Test 105 does not work in a shadow dir. (James McCoy)
Karsten Hopp 26fa7a
Solution:   Omit "src/" from the checked path.
Karsten Hopp 26fa7a
Files:	    src/testdir/test105.in, src/testdir/test105.ok
Karsten Hopp 26fa7a
Karsten Hopp 26fa7a
Karsten Hopp 26fa7a
*** ../vim-7.4.219/src/testdir/test105.in	2014-02-23 23:38:58.812760280 +0100
Karsten Hopp 26fa7a
--- src/testdir/test105.in	2014-03-27 12:31:45.052412146 +0100
Karsten Hopp 26fa7a
***************
Karsten Hopp 26fa7a
*** 7,13 ****
Karsten Hopp 26fa7a
  :set shellslash
Karsten Hopp 26fa7a
  :let tab="\t"
Karsten Hopp 26fa7a
  :command -nargs=1 Put :let expr=<q-args> | $put =expr.tab.strtrans(string(eval(expr)))
Karsten Hopp 26fa7a
! :let $HOME=fnamemodify('.', ':p:h:h:h')
Karsten Hopp 26fa7a
  :Put fnamemodify('.',              ':p'      )[-1:]
Karsten Hopp 26fa7a
  :Put fnamemodify('.',              ':p:h'    )[-1:]
Karsten Hopp 26fa7a
  :Put fnamemodify('test.out',       ':p'      )[-1:]
Karsten Hopp 26fa7a
--- 7,13 ----
Karsten Hopp 26fa7a
  :set shellslash
Karsten Hopp 26fa7a
  :let tab="\t"
Karsten Hopp 26fa7a
  :command -nargs=1 Put :let expr=<q-args> | $put =expr.tab.strtrans(string(eval(expr)))
Karsten Hopp 26fa7a
! :let $HOME=fnamemodify('.', ':p:h:h')
Karsten Hopp 26fa7a
  :Put fnamemodify('.',              ':p'      )[-1:]
Karsten Hopp 26fa7a
  :Put fnamemodify('.',              ':p:h'    )[-1:]
Karsten Hopp 26fa7a
  :Put fnamemodify('test.out',       ':p'      )[-1:]
Karsten Hopp 26fa7a
***************
Karsten Hopp 26fa7a
*** 23,29 ****
Karsten Hopp 26fa7a
  :Put fnamemodify('abc.fb2.tar.gz', ':r'      )
Karsten Hopp 26fa7a
  :Put fnamemodify('abc.fb2.tar.gz', ':r:r'    )
Karsten Hopp 26fa7a
  :Put fnamemodify('abc.fb2.tar.gz', ':r:r:r'  )
Karsten Hopp 26fa7a
! :Put substitute(fnamemodify('abc.fb2.tar.gz', ':p:r:r'), '.*\(src/testdir/.*\)', '\1', '')
Karsten Hopp 26fa7a
  :Put fnamemodify('abc.fb2.tar.gz', ':e'      )
Karsten Hopp 26fa7a
  :Put fnamemodify('abc.fb2.tar.gz', ':e:e'    )
Karsten Hopp 26fa7a
  :Put fnamemodify('abc.fb2.tar.gz', ':e:e:e'  )
Karsten Hopp 26fa7a
--- 23,29 ----
Karsten Hopp 26fa7a
  :Put fnamemodify('abc.fb2.tar.gz', ':r'      )
Karsten Hopp 26fa7a
  :Put fnamemodify('abc.fb2.tar.gz', ':r:r'    )
Karsten Hopp 26fa7a
  :Put fnamemodify('abc.fb2.tar.gz', ':r:r:r'  )
Karsten Hopp 26fa7a
! :Put substitute(fnamemodify('abc.fb2.tar.gz', ':p:r:r'), '.*\(testdir/.*\)', '\1', '')
Karsten Hopp 26fa7a
  :Put fnamemodify('abc.fb2.tar.gz', ':e'      )
Karsten Hopp 26fa7a
  :Put fnamemodify('abc.fb2.tar.gz', ':e:e'    )
Karsten Hopp 26fa7a
  :Put fnamemodify('abc.fb2.tar.gz', ':e:e:e'  )
Karsten Hopp 26fa7a
*** ../vim-7.4.219/src/testdir/test105.ok	2014-02-23 23:38:58.812760280 +0100
Karsten Hopp 26fa7a
--- src/testdir/test105.ok	2014-03-27 12:31:40.732412080 +0100
Karsten Hopp 26fa7a
***************
Karsten Hopp 26fa7a
*** 3,10 ****
Karsten Hopp 26fa7a
  fnamemodify('test.out',       ':p'      )[-1:]	't'
Karsten Hopp 26fa7a
  fnamemodify('test.out',       ':.'      )	'test.out'
Karsten Hopp 26fa7a
  fnamemodify('../testdir/a',   ':.'      )	'a'
Karsten Hopp 26fa7a
! fnamemodify('test.out',       ':~'      )	'~/src/testdir/test.out'
Karsten Hopp 26fa7a
! fnamemodify('../testdir/a',   ':~'      )	'~/src/testdir/a'
Karsten Hopp 26fa7a
  fnamemodify('../testdir/a',   ':t'      )	'a'
Karsten Hopp 26fa7a
  fnamemodify('.',              ':p:t'    )	''
Karsten Hopp 26fa7a
  fnamemodify('test.out',       ':p:t'    )	'test.out'
Karsten Hopp 26fa7a
--- 3,10 ----
Karsten Hopp 26fa7a
  fnamemodify('test.out',       ':p'      )[-1:]	't'
Karsten Hopp 26fa7a
  fnamemodify('test.out',       ':.'      )	'test.out'
Karsten Hopp 26fa7a
  fnamemodify('../testdir/a',   ':.'      )	'a'
Karsten Hopp 26fa7a
! fnamemodify('test.out',       ':~'      )	'~/testdir/test.out'
Karsten Hopp 26fa7a
! fnamemodify('../testdir/a',   ':~'      )	'~/testdir/a'
Karsten Hopp 26fa7a
  fnamemodify('../testdir/a',   ':t'      )	'a'
Karsten Hopp 26fa7a
  fnamemodify('.',              ':p:t'    )	''
Karsten Hopp 26fa7a
  fnamemodify('test.out',       ':p:t'    )	'test.out'
Karsten Hopp 26fa7a
***************
Karsten Hopp 26fa7a
*** 13,19 ****
Karsten Hopp 26fa7a
  fnamemodify('abc.fb2.tar.gz', ':r'      )	'abc.fb2.tar'
Karsten Hopp 26fa7a
  fnamemodify('abc.fb2.tar.gz', ':r:r'    )	'abc.fb2'
Karsten Hopp 26fa7a
  fnamemodify('abc.fb2.tar.gz', ':r:r:r'  )	'abc'
Karsten Hopp 26fa7a
! substitute(fnamemodify('abc.fb2.tar.gz', ':p:r:r'), '.*\(src/testdir/.*\)', '\1', '')	'src/testdir/abc.fb2'
Karsten Hopp 26fa7a
  fnamemodify('abc.fb2.tar.gz', ':e'      )	'gz'
Karsten Hopp 26fa7a
  fnamemodify('abc.fb2.tar.gz', ':e:e'    )	'tar.gz'
Karsten Hopp 26fa7a
  fnamemodify('abc.fb2.tar.gz', ':e:e:e'  )	'fb2.tar.gz'
Karsten Hopp 26fa7a
--- 13,19 ----
Karsten Hopp 26fa7a
  fnamemodify('abc.fb2.tar.gz', ':r'      )	'abc.fb2.tar'
Karsten Hopp 26fa7a
  fnamemodify('abc.fb2.tar.gz', ':r:r'    )	'abc.fb2'
Karsten Hopp 26fa7a
  fnamemodify('abc.fb2.tar.gz', ':r:r:r'  )	'abc'
Karsten Hopp 26fa7a
! substitute(fnamemodify('abc.fb2.tar.gz', ':p:r:r'), '.*\(testdir/.*\)', '\1', '')	'testdir/abc.fb2'
Karsten Hopp 26fa7a
  fnamemodify('abc.fb2.tar.gz', ':e'      )	'gz'
Karsten Hopp 26fa7a
  fnamemodify('abc.fb2.tar.gz', ':e:e'    )	'tar.gz'
Karsten Hopp 26fa7a
  fnamemodify('abc.fb2.tar.gz', ':e:e:e'  )	'fb2.tar.gz'
Karsten Hopp 26fa7a
*** ../vim-7.4.219/src/version.c	2014-03-27 12:11:43.888393741 +0100
Karsten Hopp 26fa7a
--- src/version.c	2014-03-27 12:32:56.320413238 +0100
Karsten Hopp 26fa7a
***************
Karsten Hopp 26fa7a
*** 736,737 ****
Karsten Hopp 26fa7a
--- 736,739 ----
Karsten Hopp 26fa7a
  {   /* Add new patch number below this line */
Karsten Hopp 26fa7a
+ /**/
Karsten Hopp 26fa7a
+     220,
Karsten Hopp 26fa7a
  /**/
Karsten Hopp 26fa7a
Karsten Hopp 26fa7a
-- 
Karsten Hopp 26fa7a
If the Universe is constantly expanding, why can't I ever find a parking space?
Karsten Hopp 26fa7a
Karsten Hopp 26fa7a
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp 26fa7a
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp 26fa7a
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
Karsten Hopp 26fa7a
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///