Sujet : Re: How to convert <binaryGlowMixedWithASCII> to pure ASCII
De : bpatrie (at) *nospam* bellsouth.spamisicky.net (Brian Patrie)
Groupes : comp.unix.shellDate : 15. May 2025, 07:15:55
Autres entêtes
Organisation : an elaborate system of piles and accidents
Message-ID : <10040qs$302hi$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9
User-Agent : Mozilla Thunderbird
Kaz Kylheku wrote:
> On 2025-05-14, Chris Elvidge<
chris@internal.net> wrote:
>> On 14/05/2025 at 07:28, Brian Patrie wrote:
>>> Chris Elvidge wrote:
>>> > $ sq=$(echo -ne '\u0027\u2018\u2019\u0022\u201c\u201d')
>>>
>>> To eliminate needless overhead:
>>> sg=$'\u0027\u2018\u2019\u0022\u201c\u201d'
>
> So it is needless overhead in a script that is intended
> to be portable to certain shells.
> The -n option of echo is documented in POSIX (as an XSI extension),
> whereas $'...' is a feature of some shells. (Korn, Bash, Zsh?)
echo -e is also not portable; so $'' seemed a safe assumption.