News for hackers. Stuff that matters.
Re:What's New in POSIX 2024 by vbezhenar on Tuesday October 29, 2024 @07:01AM (#41982518)
Yep, works today:

    sh-3.2$ f='Hello world'
    sh-3.2$ echo $f
    Hello world
    sh-3.2$ for i in $f; do echo $i; done
    Hello
    world

    sh-3.2$ f='Hello\xC2\xA0world'
    sh-3.2$ echo $f
    Hello world
    sh-3.2$ for i in $f; do echo $i; done
    Hello world
Re:What's New in POSIX 2024 by stouset on Tuesday October 29, 2024 @07:47AM (#41982893)
Just always quote variable interpolation and you will never have problems.

    sh-3.2$ f='Hello world'
    sh-3.2$ echo "${f}"
    Hello world
    sh-3.2$ for i in "${f}"; do echo "${i}"; done
    Hello world
    sh-3.2$