]> git.ipfire.org Git - thirdparty/bash.git/blob - tests/comsub-posix.right
Bash-4.3 patch 7
[thirdparty/bash.git] / tests / comsub-posix.right
1 abmnopyz
2 abmnopyz
3 ab
4
5
6 abcd
7 sh_352.26ax
8 sh_352.26ay
9 sh_352.25a sh_352.25b
10 sh_352.27 ) ) )
11 abc
12 here doc with )
13 )
14 bad' syntax
15 a
16 sh_352.26a
17 sh_352.26a
18 sh_352.26
19 sh_352.26
20 sh_352.26
21 1
22 sh_352.28 )
23 sh_352.28 )
24 k
25 abcd
26 ab
27 ab
28 abcde
29
30 argv[1] = <abcde^J >
31 abcdefoo
32 argv[1] = <abcde>
33 argv[2] = <foo>
34 argv[1] = <wxabcdeyz>
35 argv[1] = <abcde>
36 '
37 after 1
38 '
39 after 2
40 '
41 after 3
42 `
43 after 4
44 hello
45 after 5
46 '
47 after 6
48 x
49 x
50 quoted )
51 comment
52 here-doc with )
53 here-doc terminated with a parenthesis
54 ' # or a single back- or doublequote
55 ./comsub-posix1.sub: command substitution: line 2: syntax error near unexpected token `)'
56 ./comsub-posix1.sub: command substitution: line 2: ` if x; then echo foo )'
57 after
58 swap32_posix is a function
59 swap32_posix ()
60 {
61 local funcname=swap32_posix;
62 local arg;
63 for arg in "$@";
64 do
65 echo $((
66 ($arg & 4278190080) >> 24 |
67 ($arg & 16711680) >> 8 |
68 ($arg & 65280) << 8 |
69 ($arg & 255) << 24
70 ));
71 done
72 }
73 yes