All of lore.kernel.org
 help / color / mirror / Atom feed
From: Johannes Sixt <j6t@kdbg.org>
To: Chris Packham <judge.packham@gmail.com>,
	Junio C Hamano <gitster@pobox.com>
Cc: GIT <git@vger.kernel.org>, Paul Tan <pyokagan@gmail.com>
Subject: Re: [BUG?] applypatch-msg hook no-longer thinks stdin is a tty
Date: Sat, 3 Oct 2015 11:08:52 +0200	[thread overview]
Message-ID: <560F9B24.6030605@kdbg.org> (raw)
In-Reply-To: <CAFOYHZC9ju5Yg9LkYwiwXC+D0QZGs1isetYd-XvyhwhcZuJK+w@mail.gmail.com>

Am 03.10.2015 um 09:37 schrieb Chris Packham:
> 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

      reply	other threads:[~2015-10-03  9:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-01  3:42 [BUG?] applypatch-msg hook no-longer thinks stdin is a tty Chris Packham
2015-10-02 16:03 ` Junio C Hamano
2015-10-02 17:43   ` Junio C Hamano
2015-10-03  7:37     ` Chris Packham
2015-10-03  9:08       ` Johannes Sixt [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=560F9B24.6030605@kdbg.org \
    --to=j6t@kdbg.org \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    --cc=judge.packham@gmail.com \
    --cc=pyokagan@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.