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

Re: [PATCH] send-email: confirm on empty mail subjects

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 25, 2009, 17:35 UTC
Message-ID
<7veiqzpzjn.fsf@alter.siamese.dyndns.org>
In-Reply-To
<alpine.LSU.2.00.0908251825150.21065@fbirervta.pbzchgretzou.qr>
Jan Engelhardt <jengelh@medozas.de> writes:
Show 11 quoted lines
>>Near the tip of the 'pu' branch I
>>have a iffy workaround to "unbreak" the issue, but it is a rather
>>sledgehammer approach I do not feel comfortable enough to squash into your
>>patch yet.
>
> I see. Perhaps
>
> 	echo -en 'y\ny\n' | ...
>
> would be more gentle? (Noting that, how else should it be,
> many a shell do not have -e/-n again.)

You can solve it with printf "y\ny\n", but the reason I said it feels wrong was because your added tests are the _only_ ones that expect more than one "yes".

If some _other_ tests that currently need only one "yes" are broken in the future and starts asking for more than one, we would like to know about the breakage, but we won't notice it if we unconditionally fed "yes | ..." or your "two y's | ..." to them. That is what I am unhappy about the "iffy workaround".

Previous: Jan EngelhardtNext: Junio C Hamano
Message 6 of 7 in “send-email: confirm on empty mail subjects”
  1. send-email: confirm on empty mail subjectsJan Engelhardt, Aug 5, 2009
  2. Junio C HamanoAug 6, 2009
  3. Jan EngelhardtAug 24, 2009
  4. Junio C HamanoAug 24, 2009
  5. Jan EngelhardtAug 25, 2009
  6. Junio C HamanoAug 25, 2009
  7. Junio C HamanoSep 11, 2009

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.