On 7/26/23 10:21 PM, Zachary Santer wrote:

However, the man page for bash 5.2 only says the following about xpg_echo, in the section about shopt:
"If set, the echo builtin expands backslash-escape sequences by default."

It makes no mention of disabling option processing.

Similarly, in the description of the echo command, we see:
"The xpg_echo shell option may be used to dynamically determine whether or not echo expands these escape characters by default."

So is that a bug in the documentation?

Not really a bug, but it can be expanded. The XPG spec for echo (what POSIX
shades `XSI' in the spec) does not accept options.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/


Reply via email to