[Top][All Lists]

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

Re: non working code .. loop ends after one

From: Lawrence Velázquez
Subject: Re: non working code .. loop ends after one
Date: Wed, 01 Mar 2023 18:37:22 -0500
User-agent: Cyrus-JMAP/3.9.0-alpha0-183-gbf7d00f500-fm-20230220.001-gbf7d00f5

On Wed, Mar 1, 2023, at 6:20 PM, Greg Wooledge wrote:
> If the option argument is the empty string (-d '' or -d ""), then
> the NUL byte is used as the line delimiter.
> This is most likely a side effect of bash's internal code just doing
> something like 'delimiter = argument[0];' which happens to retrieve
> a NUL byte when argument is an empty string, due to how C strings are
> stored internally.
> Regardless of whether this was an accident originally, Chet has blessed
> it, and it's officially a supported feature now.

It will also be in the next version of POSIX:


reply via email to

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