1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 19:52:20 +00:00

tests/subshell.sh: fix backticks test failure report (re: 7f2c8110)

This commit is contained in:
Martijn Dekker 2020-08-02 19:24:27 +01:00
parent b36e081c08
commit cba895ed5f

View file

@ -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 }