On Mon, Feb 02, 2026 at 14:04:46 -0500, Davidson wrote:
> On Mon, 2 Feb 2026, [email protected] wrote:
>> ...
> Whole lot of text below, but I see no specification of what OP thinks
> a word is.
>
> So, Too-Long, Did-Not-Read
The sample code splits an input string into an array of characters.
They did a really poor job of explaining this (or even showing the
output), admittedly.
The word "word" in the Subject has no meaning here. The code operates
on an input string variable, which may contain any set of characters
(other than NUL, which no bash variable can ever hold). The output
array has one character per element. For example,
'input' -> ( i n p u t )
'foo bar' -> ( f o o ' ' b a r )