bug-bash
[Top][All Lists]
Advanced

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

Re: read Built-in Parameter Behavior -- Null Byte Delimiter


From: Greg Wooledge
Subject: Re: read Built-in Parameter Behavior -- Null Byte Delimiter
Date: Mon, 18 Jan 2016 08:14:56 -0500
User-agent: Mutt/1.4.2.3i

On Sat, Jan 16, 2016 at 02:28:27PM -0500, Adam Danischewski wrote:
> If it is expected behavior I didn't see it in the documents.

I suspect the interpretation of -d '' to mean a NUL byte delimiter
may have been an accident originally (but that's a guess).  But it's
an incredibly useful feature, and has been used in countless real
life scripts.  At this point, while it is still undocumented, it is
nevertheless a feature whose omission would be considered a regression.

Others have correctly described the difference between -d'' and -d ''
so I won't repeat that, except to say that they are right.



reply via email to

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