Sujet : Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII
De : geoff (at) *nospam* clare.See-My-Signature.invalid (Geoff Clare)
Groupes : comp.unix.shellDate : 15. May 2025, 13:36:25
Autres entêtes
Message-ID : <9n3hfl-duu.ln1@ID-313840.user.individual.net>
References : 1 2 3 4 5 6 7 8 9
User-Agent : Pan/0.154 (Izium; 517acf4)
Kaz Kylheku wrote:
The -n option of echo is documented in POSIX (as an XSI extension),
You have that backwards. POSIX allows -n to affect the behaviour
of echo on non-XSI systems (in an implementation-defined manner).
On XSI systems, "echo -n a" is required to output "-n a".
whereas $'...' is a feature of some shells. (Korn, Bash, Zsh?)
As others have pointed out, $'...' has been added to POSIX (in the
2024 revision), but without \u and \U. The rationale explains that
they were omitted because their behaviour differs between shells.
-- Geoff Clare <netnews@gclare.org.uk>