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

Re: [PATCH v3 1/2] git-p4: add test case for "Translation of file content failed" error

From
Torsten Bögershausen <tboegi@web.de>
Date
Sep 21, 2015, 09:14 UTC
Message-ID
<55FFCA89.601@web.de>
In-Reply-To
<0BCEFDB9-9042-4D42-8775-AC22C3658F71@gmail.com>
On 09/21/2015 11:05 AM, Lars Schneider wrote:
Show 14 quoted lines
> I tried it on OS X 10.9.5 and on Ubuntu Linux 14.04.1 (sed version 4.2.2).
>
> The “-i” option is mentioned in the GNU sed docs here:
> https://www.gnu.org/software/sed/manual/sed.html
>
> The OS X sed man page indeed lists “-i” as non-standard option:
> https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/sed.1.html
>
> What OS/sed version are you using?
>
> Thanks,
> Lars
>
>

sed -i is not portable. (I think I missed that in the review :-()

The gnu version of sed supports "-i", but the POSIX doesn't: <http://pubs.opengroup.org/onlinepubs/007904975/utilities/sed.html>

Previous: Lars SchneiderNext: Junio C Hamano
Message 10 of 12 in “git-p4: handle "Translation of file content failed"”
  1. 0/2 git-p4: handle "Translation of file content failed"larsxschneider@gmail.com, Sep 20, 2015
  2. 1/2 git-p4: add test case for "Translation of file content failed" errorlarsxschneider@gmail.com, Sep 20, 2015
  3. Eric SunshineSep 20, 2015
  4. Lars SchneiderSep 20, 2015
  5. Eric SunshineSep 20, 2015
  6. Luke DiamandSep 21, 2015
  7. Junio C HamanoSep 21, 2015
  8. Luke DiamandSep 21, 2015
  9. Lars SchneiderSep 21, 2015
  10. Torsten BögershausenSep 21, 2015
  11. Junio C HamanoSep 21, 2015
  12. 2/2 git-p4: handle "Translation of file content failed"larsxschneider@gmail.com, Sep 20, 2015

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.