Skip to content

Instantly share code, notes, and snippets.

@mattn
Created February 22, 2012 09:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattn/1883728 to your computer and use it in GitHub Desktop.
Save mattn/1883728 to your computer and use it in GitHub Desktop.
tests for patch 7.3.437
set noshelltemp
set noshellslash
echo system('ls')
set shellcmdflag=/s\ /c
set shellxquote=\"
!start explorer.exe C:\Documents and Settings\
!start explorer.exe
set noshelltemp
set shellxquote&
echo system('ls')
silent call delete('test4.txt')
!start cmd /c "ls | nkf -s > ./test4.txt"
sleep 200ms
if filereadable('test4.txt')
echo readfile('test4.txt')
else
echo 'failed'
endif
silent call delete('test5.txt')
!start /b cmd /c ls | nkf -s > ./test5.txt
sleep 200ms
if filereadable('test5.txt')
echo readfile('test5.txt')
else
echo 'failed'
endif
silent call delete('test6.txt')
!start /min cmd /c ls | nkf -s > ./test6.txt
sleep 200ms
if filereadable('test6.txt')
echo readfile('test6.txt')
else
echo 'failed'
endif
silent call delete('test7.txt')
"
!start /b cmd /c echo 1vim_free | cscope -dl -f cscope.out | C:\cygwin\bin\sed --regexp-extended -e "s/(\S+) (\S+) ([0-9]+)/\1:\3 \2 ^I/" > ./test7.txt
sleep 200ms
if filereadable('test7.txt')
echo readfile('test7.txt')
else
echo 'failed'
endif
silent call delete('test8.txt')
"
!start /b cmd /c echo "(>|)" | grep ">" > ./test8.txt
sleep 200ms
if filereadable('test8.txt')
echo readfile('test8.txt')
else
echo 'failed'
endif
!start rundll32 url.dll,FileProtocolHandler http://www.google.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment