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

Re: [PATCH] die_with_status: use "printf '%s\n'", not "echo"

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Aug 7, 2013, 09:23 UTC
Message-ID
<vpqy58dj1ly.fsf@anie.imag.fr>
In-Reply-To
<871u65yj0v.fsf@linux-k42r.v.cablecom.net>
Thomas Rast <trast@inf.ethz.ch> writes:
>> +	grep -v "	" error
>
> Umm, doesn't that only test that _some_ line in the error does not
> contain a tab?

Indeed. It does work as the error message is just a one-liner, but let's be robust anyway.

> Whereas you need to test that _no_ line contains <TAB>emp, or some
> such.  Perhaps as
>
>   ! grep -v "	emp" error

Err, then the -v should be remove. Also, I'll use test_expect_code 1 instead of ! to catch other grep failures, just in case.

Thanks, new patch comming.
-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Thomas RastNext: Matthieu Moy
Message 12 of 14 in “git rebase -i error message interprets \t in commit message”
  1. David KastrupAug 6, 2013
  2. Ramkumar RamachandraAug 6, 2013
  3. Junio C HamanoAug 6, 2013
  4. Matthieu MoyAug 6, 2013
  5. David KastrupAug 6, 2013
  6. Matthieu MoyAug 6, 2013
  7. David KastrupAug 6, 2013
  8. Junio C HamanoAug 6, 2013
  9. Junio C HamanoAug 6, 2013
  10. die_with_status: use "printf '%s\n'", not "echo"Matthieu Moy, Aug 6, 2013
  11. Thomas RastAug 7, 2013
  12. Matthieu MoyAug 7, 2013
  13. die_with_status: use "printf '%s\n'", not "echo"Matthieu Moy, Aug 7, 2013
  14. Thomas RastAug 7, 2013

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.