Lines Matching +full:multi +full:- +full:word
45 cat <<-'EOF' > script.sh
58 foo='${a:-foo}'
59 check "$foo" '${a:-foo}'
61 foo="${a:-foo}"
64 foo=${a:-"'{}'"}
67 foo=${a:-${b:-"'{}'"}}
71 foo="${a-'}'}"
74 # The rules for quoting in ${var-word} expressions are somewhat
76 # assigned to foo (with internally quoted sub-strings), rather
80 foo="${a:-${b:-"${c:-${d:-"x}"}}y}"}}z}"
82 # ${a:- }
83 # ${b:- }
85 # ${c:- }
86 # ${d:- }
95 foo="${a:-"'{}'"}"
101 if [ $? -ne 0 ]
104 elif [ -n "${OUT}" ]
112 atf_set "descr" "Tests that having nested quoting in a multi-word" \
116 atf_check -s eq:0 -o match:"first-word second-word" -e empty \
117 ${TEST_SH} -c 'echo "${foo:="first-word"} second-word"'
126 atf_check -s eq:0 -o empty -e empty ${TEST_SH} -c ': "${x=$((1))}"'
127 atf_check -s eq:0 -o match:1 -e empty ${TEST_SH} -c 'echo "${x=$((1))}"'