git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCHv2] am: fix patch format detection for Thunderbird "Save As" emails

From
Andreas Schwab <schwab@linux-m68k.org>
Date
Dec 19, 2009, 10:26 UTC
Message-ID
<m2y6kzi7iw.fsf@igel.home>
In-Reply-To
<4B2C70ED.1020602@gmail.com>
Stephen Boyd <bebarino@gmail.com> writes:
Show 12 quoted lines
> On 12/18/2009 09:38 PM, Eric Blake wrote:
>> Closer, but not there yet.  "$/" is still not defined.  Then, as a matter
>> of style, '\' is more readable than "\\" for representing a backslash.  So
>> as long as we are shifting to '', we might as well do it everywhere in
>> that line - write it like this:
>>
>> } | sed -e 's/$/;/' | tr ';' '\015'>  patch1-crlf.eml
>>
>> and you should be set.
>
> Ah, I think you missed that this stuff is inside single quotes already. I
> would love to just do what you suggest here.
You can replace every use of ' by '\''.
Andreas.
-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Previous: Stephen BoydNext: Junio C Hamano
Message 13 of 16 in “am: fix patch format detection for Thunderbird "Save As" emails”
  1. am: fix patch format detection for Thunderbird "Save As" emailsStephen Boyd, Dec 17, 2009
  2. Junio C HamanoDec 18, 2009
  3. [PATCHv2] am: fix patch format detection for Thunderbird "Save As" emailsStephen Boyd, Dec 18, 2009
  4. Eric BlakeDec 18, 2009
  5. Stephen BoydDec 18, 2009
  6. Eric BlakeDec 18, 2009
  7. Stephen BoydDec 19, 2009
  8. Eric BlakeDec 19, 2009
  9. Stephen BoydDec 19, 2009
  10. Stephen BoydDec 19, 2009
  11. Junio C HamanoDec 19, 2009
  12. Stephen BoydDec 19, 2009
  13. Andreas SchwabDec 19, 2009
  14. Junio C HamanoDec 18, 2009
  15. Nanako ShiraishiJan 5, 2010
  16. Stephen BoydJan 21, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.