> Date: Mon, 28 Jun 2021 11:28:58 +0100
> From: Chris Pinnock <chris_pinn...@mac.com>

> I’m not sure if this is a bug or expected behaviour so thought I
> would ask here.

src/bin/ksh/NOTES says:

    - field splitting (IFS): ksh88/ksh93 strip leading non-white space
      IFS chars, pdksh (and POSIX, I think) leave them intact. e.g.
        $ IFS="$IFS:"; read x; echo "<$x>"
        ::
      prints "<>" in at&t ksh, "<::>" in pdksh.

but i cant see anything to justify the double-counting of IFS.

> seems to be the way set is used.

        printf %s\\n x$msg1

shows set is not to blame (the blank line indicates an empty field).

sorry i cant say anything very useful about it.

Reply via email to