[Tcsh] "Readable" Unicode in setenv

H.Merijn Brand tcsh at tux.freedom.nl
Fri Dec 10 12:53:02 UTC 2021


On Fri, 10 Dec 2021 14:36:16 +0200, Kimmo Suominen <kim at netbsd.org> wrote:

> But instead of storing the escape sequence in the ECHO environment
> variable, I would suggest storing the actual character. This way you
> can even skip ensuring echo_style is what you need.
> 
> equinoxe:~> setenv EURO $'\x{20ac}'
> equinoxe:~> echo $EURO  
>> equinoxe:~> env | grep -i euro  
> EURO=€
> equinoxe:~>  
> 
> Kind regards,
> + Kimmo

��

I was testing what inspired me to write the original patch, and as I
seldom use anything of bash beyond bourne-shell / posix-shell features,
I never used $'\x{....} ever before, so now that we have it, I can make
it muscle-memory.

Thanks a *lot* for pursuing this! I'm going to use it all the time.

-- 
H.Merijn Brand  https://tux.nl   Perl Monger   http://amsterdam.pm.org/
using perl5.00307 .. 5.33        porting perl5 on HP-UX, AIX, and Linux
https://tux.nl/email.html http://qa.perl.org https://www.test-smoke.org
                           
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
URL: <https://mailman.astron.com/pipermail/tcsh/attachments/20211210/88418aac/attachment.asc>


More information about the Tcsh mailing list