mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	functionaltest: Use octal escapes for printf
According to POSIX[0], only octal escapes are supported by the printf command. GNU coreutils' printf and some shells' builtin printf versions which support hex escapes, but dash and non-GNU printf do not. [0]: http://pubs.opengroup.org/onlinepubs/9699919799/utilities/printf.html
This commit is contained in:
		| @@ -111,10 +111,10 @@ describe("shell command :!", function() | |||||||
|     feed([[<CR>]]) |     feed([[<CR>]]) | ||||||
|     -- Print BELL control code. #4338 |     -- Print BELL control code. #4338 | ||||||
|     screen.bell = false |     screen.bell = false | ||||||
|     feed([[:!printf '\x07\x07\x07\x07text'<CR>]]) |     feed([[:!printf '\007\007\007\007text'<CR>]]) | ||||||
|     screen:expect([[ |     screen:expect([[ | ||||||
|       ~                                                 | |       ~                                                 | | ||||||
|       :!printf '\x07\x07\x07\x07text'                   | |       :!printf '\007\007\007\007text'                   | | ||||||
|       text                                              | |       text                                              | | ||||||
|       Press ENTER or type command to continue^           | |       Press ENTER or type command to continue^           | | ||||||
|     ]], nil, nil, function() |     ]], nil, nil, function() | ||||||
| @@ -122,7 +122,7 @@ describe("shell command :!", function() | |||||||
|     end) |     end) | ||||||
|     feed([[<CR>]]) |     feed([[<CR>]]) | ||||||
|     -- Print BS control code. |     -- Print BS control code. | ||||||
|     feed([[:echo system('printf ''\x08\n''')<CR>]]) |     feed([[:echo system('printf ''\010\n''')<CR>]]) | ||||||
|     screen:expect([[ |     screen:expect([[ | ||||||
|       ~                                                 | |       ~                                                 | | ||||||
|       ^H                                                | |       ^H                                                | | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 James McCoy
					James McCoy