[Top][All Lists]

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

Re: RFE -or- Howto?

From: Chris F.A. Johnson
Subject: Re: RFE -or- Howto?
Date: Tue, 3 Aug 2010 02:00:47 -0400 (EDT)
User-agent: Alpine 2.00 (LMD 1167 2008-08-23)

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

It makes it clear that you are no longer doing what I want, a multi-variable

    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>
   Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)
   Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)

reply via email to

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