bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: IFS whitespace definition


From: Chet Ramey
Subject: Re: IFS whitespace definition
Date: Fri, 18 Oct 2024 16:38:05 -0400
User-agent: Mozilla Thunderbird

On 10/17/24 10:33 PM, Robert Elz wrote:
     Date:        Thu, 17 Oct 2024 18:44:59 -0400
     From:        Greg Wooledge <greg@wooledge.org>
     Message-ID:  <ZxGTa0JHALVzhYiY@wooledge.org>

   | Between bash 4.4 and 5.0, the definition of "IFS whitespace" has apparently
   | been expanded:

Not going to comment on bash, or its manual, specifically, but the
standard allows anything that the locale defines as in the space
category of the current locale to be IFS whitespace, if present in IFS ...
but requires that space, tab, and newline (again, if present in IFS) be
IFS whitespace, whatever the locale specifies.

The current version of the standard is the result of it relaxing the
previous edition's requirements. I don't know if the test suite still
tests for behavior with \r\b\f\v in $IFS.

Which (of any) character other than space, tab, and newline (which are in
the locale's space class) count as IFS whitespace is up to the implementation.

Now. Not during the period we're talking about. And the reason it got
relaxed is because there were implementations that didn't conform to the
previous edition's text.

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]