From cba895ed5fe4cf7c4fae25d4be1409eae79249db Mon Sep 17 00:00:00 2001 From: Martijn Dekker Date: Sun, 2 Aug 2020 19:24:27 +0100 Subject: [PATCH] tests/subshell.sh: fix backticks test failure report (re: 7f2c8110) --- src/cmd/ksh93/tests/subshell.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cmd/ksh93/tests/subshell.sh b/src/cmd/ksh93/tests/subshell.sh index 7279f6cd3..71ff9af90 100755 --- a/src/cmd/ksh93/tests/subshell.sh +++ b/src/cmd/ksh93/tests/subshell.sh @@ -331,14 +331,14 @@ done # Regression introduced in 93v- beta; let's make sure not to backport it to 93u+m # Ref.: https://github.com/att/ast/issues/478 -expected='foo=bar' +expect='foo=bar' actual=$( foo=$(print `/bin/echo bar`) # should print nothing print foo=$foo # should print "foo=bar" ) -[[ $actual == "$expected" ]] \ +[[ $actual == "$expect" ]] \ || err_exit 'Backticks nested in $( ) result in misdirected output' \ - "(expected $(printf %q "$expect"), got $(printf $q "$actual"))" + "(expected $(printf %q "$expect"), got $(printf %q "$actual"))" # the next tests loop on all combinations of # { SUB CAT INS TST APP } X { file-sizes }