1name: xxx-quoted-newline-1 2description: 3 Check that \<newline> works inside of ${} 4stdin: 5 abc=2 6 echo ${ab\ 7 c} 8expected-stdout: 9 2 10--- 11 12name: xxx-quoted-newline-2 13description: 14 Check that \<newline> works at the start of a here document 15stdin: 16 cat << EO\ 17 F 18 hi 19 EOF 20expected-stdout: 21 hi 22--- 23 24name: xxx-quoted-newline-3 25description: 26 Check that \<newline> works at the end of a here document 27stdin: 28 cat << EOF 29 hi 30 EO\ 31 F 32expected-stdout: 33 hi 34--- 35 36name: xxx-multi-assignment-cmd 37description: 38 Check that assignments in a command affect subsequent assignments 39 in the same command 40stdin: 41 FOO=abc 42 FOO=123 BAR=$FOO 43 echo $BAR 44expected-stdout: 45 123 46--- 47 48name: xxx-exec-environment-1 49description: 50 Check to see if exec sets it's environment correctly 51stdin: 52 FOO=bar exec env 53expected-stdout-pattern: 54 /(^|.*\n)FOO=bar\n/ 55--- 56 57name: xxx-exec-environment-2 58description: 59 Check to make sure exec doesn't change environment if a program 60 isn't exec-ed 61# Under os/2, _emx_sig environment variable changes. 62category: !os:os2 63stdin: 64 env > bar1 65 FOO=bar exec; env > bar2 66 cmp -s bar1 bar2 67--- 68 69name: quoted-brace-expansion-1 70stdin: 71 echo "${foo:-"a"}*" 72expected-stdout: 73 a* 74--- 75 76name: quoted-brace-expansion-2 77stdin: 78 foo='bar' 79 echo "${foo+(a)}*" 80expected-stdout: 81 (a)* 82--- 83 84name: xxx-prefix-strip-1 85stdin: 86 foo='a cdef' 87 echo ${foo#a c} 88expected-stdout: 89 def 90--- 91 92name: xxx-prefix-strip-2 93stdin: 94 set a c 95 x='a cdef' 96 echo ${x#$*} 97expected-stdout: 98 def 99--- 100 101name: xxx-variable-syntax-1 102stdin: 103 echo ${:} 104expected-stderr-pattern: 105 /bad substitution/ 106expected-exit: 1 107--- 108