help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] Is read -d '' officially supported?


From: Chet Ramey
Subject: Re: [Help-bash] Is read -d '' officially supported?
Date: Sun, 30 Oct 2016 16:20:14 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.4.0

On 10/30/16 2:47 PM, Ulrich Mueller wrote:
>>>>>> On Sun, 30 Oct 2016, Chet Ramey wrote:
> 
>> On 10/30/16 12:43 PM, Eduardo Bustamante wrote:
>>> It is not documented behavior, but it is certainly relied upon by many
>>> to process NUL delimited input streams:
>>> http://mywiki.wooledge.org/BashFAQ/001
>>>
>>> So I wouldn't call it undefined behavior.
> 
>> https://lists.gnu.org/archive/html/bug-bash/2016-01/msg00121.html
> 
> I had hoped for a more straight forward answer than "You do have to
> understand how C strings work and how they are used when passing
> arguments to commands for it to make sense." :)

Maybe you should look at the "there's no reason it should not just work"
and "it's not a special case that needs to be documented as such", then.

> Can we rely on -d '' as supported/documented behaviour?

I have no plans to change it.

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



reply via email to

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