Bash Version: 5.2
Patch Level: 26
Release Status: release
Description:
In POSIX mode, echo incorrectly processes -e as an option unless xpg_echo
is also enabled.
It always has. I wasn't willing to sacrifice that much compatibility when
bash is run as sh. Bash doesn't claim strict posix conformance unless
xpg_echo is enabled. You can build a version where it's enabled by default.
This is a regression from 3.2 (or possibly some 4.x versions, haven't
tested), where --posix caused -e
to be treated correctly, even if it also enabled backslash processing.
Apple's version of bash-3.2 is not the sams as the distributed version of
bash-3.2. They made some changes for POSIX certification that I didn't
merge.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/