I am trying to build Bash 4.2 as an RPM package for use on Enterprise Linux 5 systems, which come by default with 3.2.25. This works successfully, however, I want both versions to co-exist on the system, to avoid conflicts with the system package, and to allow system/other scripts to continue to use bash3 which they are compatible with.
My plan is as follows:
- Rename the package 'bash4' and do not conflict with 'bash' or provide 'sh'
- Configure bash to build with the binary name 'bash4' and change the path of any docs or support files accordingly
In theory this is simple and Vim offers binary prefix/suffix in it's configure scripts, however bash doesn't appear to have this feature. The closest I have found is automake's EXEEXT which provides support for executable extensions (such as .exe on Windows) but this isn't really designed for what I want to do, not does it solve the doc problem.