All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnaldo Carvalho de Melo <acme@kernel.org>
To: Bernd Buschinski <b.buschinski@googlemail.com>
Cc: dwarves@vger.kernel.org
Subject: Re: pahole vs isatty
Date: Tue, 29 Jun 2021 09:38:41 -0300	[thread overview]
Message-ID: <YNsUURu/O/fDJLKh@kernel.org> (raw)
In-Reply-To: <CACN-hLVoz2tWrtgDLabOv6S1-H_8RD2fh8SV6EnADF1ikMxrmw@mail.gmail.com>

Em Tue, Jun 29, 2021 at 10:13:38AM +0200, Bernd Buschinski escreveu:
> It seems the output is now only available if it is a real tty, which

if stdin is a real tty, stdout can be a real tty or be redirected, as
before.

> doesn't work for my scripts.

Sorry about that, I should have added a explicit command line option,
like with 'perf', where '-' means stdin. As this is a relatively new
feature I guess I'll do just that, i.e. stop unconditionally checking
for isatty(0) and only use the pretty printer when --printer is used.

> So, just as a question: Is this change really intentional?
> Is there any easy way to restore the old behavior?
> 
> FYI: my scripts are using perl and python, I do no really favor
> changing them, but if there is no other way.. I will do it :)

Well, you'll at least need to update pahole to 1.22, or, in the
meantime, use a patch, I'm working on it now, thanks for the report!

- Arnaldo

  reply	other threads:[~2021-06-29 12:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-29  8:13 pahole vs isatty Bernd Buschinski
2021-06-29 12:38 ` Arnaldo Carvalho de Melo [this message]
2021-06-29 16:43   ` Arnaldo Carvalho de Melo
2021-06-30  6:13     ` Bernd Buschinski
2021-06-30 12:26       ` Arnaldo Carvalho de Melo

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=YNsUURu/O/fDJLKh@kernel.org \
    --to=acme@kernel.org \
    --cc=b.buschinski@googlemail.com \
    --cc=dwarves@vger.kernel.org \
    /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.