]> git.ipfire.org Git - thirdparty/bash.git/blob - tests/comsub-posix2.sub
Bash-4.4 patch 19
[thirdparty/bash.git] / tests / comsub-posix2.sub
1 # problem with bash-4.x versions before bash-4.2. required posix interp
2 swap32_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
16 type swap32_posix