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: Tue, 19 Jan 2016 11:49:25 -0500
User-agent: Mutt/1.4.2.3i

On Tue, Jan 19, 2016 at 11:39:07AM -0500, Adam Danischewski wrote:
> Bash also removes the single quotes before it hits read when the single
> quotes are attached to the delimiter option (-d'').

And in EVERY OTHER COMMAND.  This is how quotes work.  This is utterly
fundamental to bash and the entire Bourne shell syntax.

  echo ""'a'''$''""''

Is *exactly* the same as

  echo a

Echo has no way to know that you typed a and not "a" or a"" or 'a' or ....



reply via email to

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