On Tue, 3 Feb 2026, [email protected] wrote:

On Mon, 2 Feb 2026, Greg Wooledge wrote:
On Tue, Feb 03, 2026 at 01:19:35 +0000, [email protected] wrote:
On Mon, 2 Feb 2026, Greg Wooledge wrote:

On Mon, Feb 02, 2026 at 23:30:16 +0000, [email protected] wrote:
don't know what he meant
https://stackoverflow.com/questions/7578930/bash-split-string-into-character-array
Oh, so you didn't actually WRITE the code.

Was your question "How does this code work?"
yes
OK, here's the code once again:

   string='whatever'
   [[ $string =~ ${string//?/(.)} ]]
   array=( "${BASH_REMATCH[@]:1}" )
[comprehensive explanatory analysis snipped]
a feast for thought
thanks
It seems to me that you might find this wiki helpful, and interesting:

  https://mywiki.wooledge.org/


Reply via email to