[prev in list] [next in list] [prev in thread] [next in thread] 

List:       git
Subject:    Re: [PATCH] Use perl instead of tac
From:       Brian Gernhardt <benji () silverinsanity ! com>
Date:       2008-04-30 16:12:45
Message-ID: 728C10C4-D51E-4FDD-BD15-B99882E10500 () silverinsanity ! com
[Download RAW message or body]


On Apr 30, 2008, at 5:39 AM, Jörg Sommer wrote:

> … but I found the problem. I don't know how to pass the list from one
> subshell to the other.
>
> % { echo pick; echo merge; a=12 } | { echo +$a+; while read line; do  
> echo $line; done; }
> ++
> pick
> merge
>
> The only idea I have is a file. Do you have a better idea?
>
> % { echo pick; echo merge; a=12 } >/tmp/tmp; \
>  { echo +$a+; while read line; do echo $line; done; } < /tmp/tmp
> +12+
> pick
> merge

No, I don't.  But I think the resulting code will be easier to read,  
even with the file.

~~ Brian--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic