]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/comsub.tests
Bash-4.3 patch 7
[thirdparty/bash.git] / tests / comsub.tests
CommitLineData
3185942a
JA
1# command substution parsing tests
2
3TABSIZE=`grep -v '^[ #]' $CAPS </dev/null | grep -v "^$" | grep -v "^capalias"| grep -v "^infoalias" | wc -l`
4
5recho `echo ab cd #efg
6hijkl`
7
8recho ab$(echo mn; echo op)yz
9
10a=`echo 'a b c' | sed 's/ /\\
11/g' | grep 'b'`
12recho $a
13
14recho `echo 'a\' b`
15
16recho `echo '\$' bab`
17
18recho `echo '\`' ab`
19
20recho `echo '\\' ab`
21
22# old-style command substitution parsing compatibility tests -- post bash-3.1
23recho 'foo \\
24bar'
25
26recho 'foo \
27bar'
28
29echo `recho sed -e 's/[ :]/\\
30/g'`
31
32echo `recho sed -e 's/[ :]/\
33/g'`
34
35echo `recho 'foo\\
36bar'`
37
38echo `recho 'foo\
39bar'`
40
41echo $(recho 'foo\
42bar')
0001803f
CR
43
44${THIS_SH} ./comsub1.sub