Re: [hackers] [libgrapheme] Add manuals for the grapheme_to_*case_utf8-functions || Laslo Hunhold

From: Quentin Rameau <quinq_AT_fifth.space>
Date: Sun, 28 Aug 2022 20:00:42 +0200

> > > +function returns the number of $(printf $UNIT)s in the array
> > > resulting
> > ^-- But… Why?!
>
> Doesn't work otherwise in the heredoc. If I write $UNITs it doesn't
> interpret it correctly, so I reformulate it as a subshell-expression.
> It's not elegant, but works. Is there a better way to address this?

But of course, that's why the construction ${variable} exists,
for this very common case.
It's clear that UNITs isn't a variable,
so you need to separate the variable from the string.
You don't that with a subshell and printf,
you do that with just ${UNIT}s.
Received on Sun Aug 28 2022 - 20:00:42 CEST

This archive was generated by hypermail 2.3.0 : Sun Aug 28 2022 - 20:12:34 CEST