|
Installs /usr/bin/bash3.2.57 alongside the system bash. Same version Apple
ships on macOS (frozen at 3.2.57 since 2007 due to GPLv3). Useful for
testing that shell scripts remain portable - bash 4.0+ features like
associative arrays (declare -A) fail here the same way they do on macOS.
Build notes:
* Sources bash-3.2 upstream tarball + all 57 official GNU patches.
* Applies -std=gnu89 in CFLAGS and CFLAGS_FOR_BUILD so modern GCC 15
accepts the K&R-style declarations in bash 3.2 source.
* Installs only the binary; no /etc/bash.bashrc, no sh symlink, no
backup= entries, no conflict with stock bash.
Tested on Arch Linux x86_64 with GCC 15.2.1 + glibc 2.40+.
|