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: xxx-what-do-you-call-this-1
70stdin:
71	echo "${foo:-"a"}*"
72expected-stdout:
73	a*
74---
75
76name: xxx-prefix-strip-1
77stdin:
78	foo='a cdef'
79	echo ${foo#a c}
80expected-stdout:
81	def
82---
83
84name: xxx-prefix-strip-2
85stdin:
86	set a c
87	x='a cdef'
88	echo ${x#$*}
89expected-stdout:
90	def
91---
92
93name: xxx-variable-syntax-1
94stdin:
95	echo ${:}
96expected-stderr-pattern:
97	/bad substitution/
98expected-exit: 1
99---
100