|
| From: | Chet Ramey |
| Subject: | Re: suggestion: shell option for echo to not interpret any argument as an option |
| Date: | Fri, 28 Jul 2023 11:29:35 -0400 |
| User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 |
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 chet@case.edu http://tiswww.cwru.edu/~chet/
| [Prev in Thread] | Current Thread | [Next in Thread] |