help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] Understanding read -r


From: Chet Ramey
Subject: Re: [Help-bash] Understanding read -r
Date: Fri, 05 Oct 2012 17:16:13 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:15.0) Gecko/20120907 Thunderbird/15.0.1

On 10/4/12 6:58 PM, Dan Douglas wrote:

> As an aside, mksh has an interesting syntax to assign a heredoc result 
> directly to a variable:
> 
> # mksh
> 
> var=<<EOF
> ...
> EOF
> 
> This is optimized to happen in memory with no temporary file.

Is that anything more than syntactic sugar?  It doesn't seem different
enough from multi-line double- or single-quoted strings to make it worth
adding.

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



reply via email to

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