Date: Fri, 8 Mar 2019 19:18:29 -0500 From: Grisha Levit <grishale...@gmail.com> Message-ID: <CAMu=bro78yey5qvzfctrvxsbxpk+zrpr+t80snrvsosrxze...@mail.gmail.com>
| bash removes the surrounding space in these cases (all other shells | print `< X >'): Must be something to do with null value for IFS. If IFS=Q (or anything else not containing space or X) it works fine. That shows that the spaces are being removed by field splitting (which is the only place they properly can be, so that is correct) - except they should not be when there is no space in IFS (and aren't, when IFS contains something, but no space). It is as if IFS='' is being treated as an unset IFS in this case. kre