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

Re: [BUG?] applypatch-msg hook no-longer thinks stdin is a tty

From
Johannes Sixt <j6t@kdbg.org>
Date
Oct 3, 2015, 09:08 UTC
Message-ID
<560F9B24.6030605@kdbg.org>
In-Reply-To
<CAFOYHZC9ju5Yg9LkYwiwXC+D0QZGs1isetYd-XvyhwhcZuJK+w@mail.gmail.com>
Am 03.10.2015 um 09:37 schrieb Chris Packham:
Show 5 quoted lines
> On Sat, Oct 3, 2015 at 6:43 AM, Junio C Hamano <gitster@pobox.com> wrote:
>> If you want to go interactive from the hook, you'd have to open and
>> interact with /dev/tty yourself in your hook anyway.
>
> That may be what I have to do, although I have absolutely no idea how.
Something like this:

exec <>/dev/tty 1>&0 2>&0 printf "what now: " read answer echo the answer was: "$answer"

-- Hannes
Previous: Chris Packham
Message 5 of 5 in “[BUG?] applypatch-msg hook no-longer thinks stdin is a tty”
  1. Chris PackhamOct 1, 2015
  2. Junio C HamanoOct 2, 2015
  3. Junio C HamanoOct 2, 2015
  4. Chris PackhamOct 3, 2015
  5. Johannes SixtOct 3, 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.