Re: [PATCH v2] Re: mailinfo: allow individual e-mail files as input
- From
Brandon Casey <casey@nrlssc.navy.mil>
- Date
- Aug 7, 2009, 02:05 UTC
- Message-ID
- <4Frzb2o8m7o4sjOhlZiN-mXQHUAsXYeImlNxZ8ANJZ5I3_S_JjSsoA@cipher.nrlssc.navy.mil>
- In-Reply-To
- <20090807015628.GG12924@vidovic>
Nicolas Sebrecht wrote:
Show 22 quoted lines
> The 07/08/09, Nicolas Sebrecht wrote:
>> The 06/08/09, Brandon Casey wrote:
>>
>>> diff --git a/git-am.sh b/git-am.sh
>>> index d64d997..49f2be4 100755
>>> --- a/git-am.sh
>>> +++ b/git-am.sh
>> <...>
>>
>>> + {
>>> + echo "$l1"
>>> + echo "$l2"
>>> + echo "$l3"
>>> + cat
>> UUOC, I guess.
>>
>>> + } | sed -n -e '/^$/q' -e '/^[ ]/d' -e p "$1" |
>> ^^
>
> Owned by the tabulation, sorry.
>
> Do we still need the "$1"?Whoops, I missed that "$1" argument to sed. That means the v2 followup patch is unnecessary since the sed is operating on a file argument and _not_ stdin. I think it's a little strange like that though...
{
sed "$1"
} < "$1"-brandon