On 7/26/23 8:42 AM, Zachary Santer wrote:
If POSIX mandates that '--' not be taken as the end of options, then the safe thing would be to simply not have echo take any options. Obviously, that would break backwards compatibility, so you'd want this to be optional behavior that the shell programmer can enable if desired.
set -o posix shopt -s xpg_echo -- ``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/