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

Re: [PATCH] Trapping exit in tests, using return for errors

From
Junio C Hamano <junkio@cox.net>
Date
Aug 11, 2005, 06:31 UTC
Message-ID
<7vvf2dm1b8.fsf@assigned-by-dhcp.cox.net>
In-Reply-To
<7vzmrpm1q9.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> writes:
> Sorry, sent it out without finishing.  The worst is "return".

Ah, my mistake. You have the eval that can eval "return" in a function and let that "return" return from that function. Cleverly done.

Thanks.
Previous: Junio C HamanoNext: Pavel Roskin
Message 4 of 5 in “Trapping exit in tests, using return for errors”
  1. Trapping exit in tests, using return for errorsPavel Roskin, Aug 11, 2005
  2. Junio C HamanoAug 11, 2005
  3. Junio C HamanoAug 11, 2005
  4. Junio C HamanoAug 11, 2005
  5. Pavel RoskinAug 11, 2005

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.