[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:
https://austingroupbugs.net/view.php?id=243#c6110
--
vq
- non working code .. loop ends after one, alex xmb ratchev, 2023/03/01
- Re: non working code .. loop ends after one, alex xmb ratchev, 2023/03/01
- Re: non working code .. loop ends after one, Kerin Millar, 2023/03/01
- Re: non working code .. loop ends after one, alex xmb ratchev, 2023/03/01
- Re: non working code .. loop ends after one, Greg Wooledge, 2023/03/01
- Re: non working code .. loop ends after one,
Lawrence Velázquez <=
- Re: non working code .. loop ends after one, alex xmb ratchev, 2023/03/01
- Re: non working code .. loop ends after one, Lawrence Velázquez, 2023/03/01
- Re: non working code .. loop ends after one, alex xmb ratchev, 2023/03/01
- Re: non working code .. loop ends after one, Andreas Kusalananda Kähäri, 2023/03/02
- Re: non working code .. loop ends after one, alex xmb ratchev, 2023/03/02
- Re: non working code .. loop ends after one, alex xmb ratchev, 2023/03/02
- Re: non working code .. loop ends after one, alex xmb ratchev, 2023/03/01
- Re: non working code .. loop ends after one, alex xmb ratchev, 2023/03/01
- Re: non working code .. loop ends after one, alex xmb ratchev, 2023/03/01
- Re: non working code .. loop ends after one, Kerin Millar, 2023/03/01