[SCM] Vim packaging branch, maint/lenny, updated. debian/7.1.314-3-51-g209709e

James Vega jamessan at debian.org
Sun Oct 12 06:29:02 UTC 2008


The following commit has been merged in the maint/lenny branch:
commit e40ee88aa00a1afa608ea4f220057ce69b27691e
Author: James Vega <jamessan at debian.org>
Date:   Wed Oct 8 23:41:12 2008 -0400

    Update filename escaping for test11.in
    
    Signed-off-by: James Vega <jamessan at debian.org>

diff --git a/src/testdir/test11.in b/src/testdir/test11.in
index 063aeb2..9753d01 100644
--- a/src/testdir/test11.in
+++ b/src/testdir/test11.in
@@ -32,21 +32,21 @@ STARTTEST
 :w>>test.out                    " Append it to the output file
 :au! FileAppendPre
 :" setup autocommands to decompress before reading and re-compress afterwards
-:au BufReadPre      *.gz   !gzip -d <afile>
+:au BufReadPre      *.gz   exe '!gzip -d ' . shellescape(expand("<afile>"))
 :au BufReadPre      *.gz   call rename(expand("<afile>:r"), expand("<afile>"))
 :au BufReadPost     *.gz   call rename(expand("<afile>"), expand("<afile>:r"))
-:au BufReadPost     *.gz   !gzip <afile>:r
+:au BufReadPost     *.gz   exe '!gzip ' . shellescape(expand("<afile>:r"))
 :e! Xtestfile.gz                " Edit compressed file
 :w>>test.out                    " Append it to the output file
 :set shelltemp                  " need temp files here
 :au FilterReadPre   *.out  call rename(expand("<afile>"), expand("<afile>").".t")
-:au FilterReadPre   *.out  !sed s/e/E/ <afile>.t ><afile>
-:au FilterReadPre   *.out  !rm <afile>.t
+:au FilterReadPre   *.out  exe '!sed s/e/E/ ' . shellescape(expand("<afile>")) . ".t >" . shellescape(expand("<afile>"))
+:au FilterReadPre   *.out  exe '!rm ' . shellescape(expand("<afile>")) . '.t'
 :au FilterReadPost  *.out  '[,']s/x/X/g
 :e! test.out                    " Edit the output file
 :23,$!cat
 :23,$s/\r$//                 " remove CR for when sed adds them
-:au! FileReadPre    *.gz   !gzip -d <afile>
+:au! FileReadPre    *.gz   exe '!gzip -d ' . shellescape(expand("<afile>"))
 :au  FileReadPre    *.gz   call rename(expand("<afile>:r"), expand("<afile>"))
 :au! FileReadPost   *.gz   '[,']s/l/L/
 :$r Xtestfile.gz             " Read compressed file

-- 
Vim packaging



More information about the pkg-vim-maintainers mailing list