]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/comsub-posix2.sub
Bash-4.3 patch 7
[thirdparty/bash.git] / tests / comsub-posix2.sub
CommitLineData
495aee44
CR
1# problem with bash-4.x versions before bash-4.2. required posix interp
2swap32_posix()
3{
4 local funcname=swap32_posix
5 local arg
6 for arg in "$@"; do
7 echo $((
8 ($arg & 4278190080) >> 24 |
9 ($arg & 16711680) >> 8 |
10 ($arg & 65280) << 8 |
11 ($arg & 255) << 24
12 ))
13 done
14}
15
16type swap32_posix