Package: bash
Version: 2.05b-13
Severity: normal
Hi,
It seems to me that bash's posix mode should include enabling
xpg_echo mode, in accordance with the SUSv3/POSIX XSI
requirements.
$ echo 'echo "a\\b"' | bash --posix
a\b
$ echo 'shopt -s xpg_echo ; echo "a\\b"' | bash --posix
a
$ echo 'shopt -s xpg_echo ; echo "a\\b"' | bash
a
Thanks,
Matthias Klose wrote: I don't think I want to break backwards compatibility that badly. Remember that bash also goes into posix mode when invoked as `sh'. I will think about doing it for --posix only; perhaps for `set -o posix' also. Chet