On Mon, 2 Aug 2010, Linda Walsh wrote:
But then we've devolved to really ugly.
I like the look of
(a b c) = (1 2 3).
At least the "<<<" allows it to be on one line though not so attractively,
but using the multiline redirection just gets too unslightly for words.
A minor loss of "prettiness" is negligible compared to
portability.
It makes it clear that you are no longer doing what I want, a multi-variable
assignment.
It *is* a multi-variable assignment.
But that's my sense of what looks readable in code....YMMV.
On 8/2/2010 3:51 PM, Chris F.A. Johnson wrote:
On Mon, 2 Aug 2010, Dennis Williamson wrote:
It's called a "here string".
And the same thing can also be accomplished with the more portable
here document:
read a b c d <<.
1 2 3 4
.
--
Chris F.A. Johnson, <http://cfajohnson.com>
Author:
Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)