From 6c0f1903e6b353566a6637a43e543977116acd52 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Wed, 13 Jun 2018 23:03:37 -0400 Subject: 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 --- test/functional/ui/output_spec.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/functional/ui/output_spec.lua b/test/functional/ui/output_spec.lua index 02ca566bd8..93d8965cb1 100644 --- a/test/functional/ui/output_spec.lua +++ b/test/functional/ui/output_spec.lua @@ -111,10 +111,10 @@ describe("shell command :!", function() feed([[]]) -- Print BELL control code. #4338 screen.bell = false - feed([[:!printf '\x07\x07\x07\x07text']]) + feed([[:!printf '\007\007\007\007text']]) screen:expect([[ ~ | - :!printf '\x07\x07\x07\x07text' | + :!printf '\007\007\007\007text' | text | Press ENTER or type command to continue^ | ]], nil, nil, function() @@ -122,7 +122,7 @@ describe("shell command :!", function() end) feed([[]]) -- Print BS control code. - feed([[:echo system('printf ''\x08\n''')]]) + feed([[:echo system('printf ''\010\n''')]]) screen:expect([[ ~ | ^H | -- cgit