]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/comsub-posix.right
Bash-4.3 patch 7
[thirdparty/bash.git] / tests / comsub-posix.right
CommitLineData
3185942a
JA
1abmnopyz
2abmnopyz
3ab
4
5
6abcd
7sh_352.26ax
8sh_352.26ay
9sh_352.25a sh_352.25b
10sh_352.27 ) ) )
11abc
12here doc with )
13)
14bad' syntax
15a
16sh_352.26a
17sh_352.26a
18sh_352.26
19sh_352.26
20sh_352.26
211
22sh_352.28 )
23sh_352.28 )
24k
25abcd
26ab
27ab
28abcde
29
30argv[1] = <abcde^J >
31abcdefoo
32argv[1] = <abcde>
33argv[2] = <foo>
34argv[1] = <wxabcdeyz>
35argv[1] = <abcde>
36'
37after 1
38'
39after 2
40'
41after 3
42`
43after 4
44hello
45after 5
46'
47after 6
48x
49x
50quoted )
51comment
52here-doc with )
53here-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 )'
57after
495aee44
CR
58swap32_posix is a function
59swap32_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}
73yes