mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	fix: shell problem
This commit is contained in:
		| @@ -72,13 +72,12 @@ describe('file reading, writing and bufnew and filter autocommands', function() | |||||||
|       prepare_gz_file('Xtestfile', text1) |       prepare_gz_file('Xtestfile', text1) | ||||||
|       --execute('au FileChangedShell * echo "caught FileChangedShell"') |       --execute('au FileChangedShell * echo "caught FileChangedShell"') | ||||||
|       feed_command('set bin') |       feed_command('set bin') | ||||||
|       if iswin() then |       feed_command("call setenv('GZIP', v:null)") | ||||||
|           feed_command('let $GZIP = ""') |       if not iswin() then | ||||||
|           feed_command("au FileReadPost    *.gz   '[,']!gzip -d") |           -- Ignore non standard shell configuration | ||||||
|       else |           feed_command('set shell=sh') | ||||||
|           -- Note: GZIP= Does not work in Windows |  | ||||||
|           feed_command("au FileReadPost    *.gz   '[,']!GZIP= gzip -d") |  | ||||||
|       end |       end | ||||||
|  |       feed_command("au FileReadPost    *.gz   '[,']!gzip -d") | ||||||
|       -- Read and decompress the testfile. |       -- Read and decompress the testfile. | ||||||
|       feed_command('$r Xtestfile.gz') |       feed_command('$r Xtestfile.gz') | ||||||
|       expect('\n'..text1) |       expect('\n'..text1) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Shougo Matsushita
					Shougo Matsushita