util-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Rick van Rein <rick@openfortress.nl>
To: Karel Zak <kzak@redhat.com>
Cc: util-linux@vger.kernel.org
Subject: Re: PATCH: script: Introduced a streaming output command
Date: Mon, 10 Dec 2018 15:47:41 +0100	[thread overview]
Message-ID: <5C0E7C8D.2030307@openfortress.nl> (raw)
In-Reply-To: <20181210114634.ee5jamwllimdmrdc@ws.net.home>

Hi Karel,

>>  #define DEFAULT_TYPESCRIPT_FILENAME "typescript"
>> +#define DEFAULT_TYPESCRIPT_COMMAND  "scriptstream"
> 
> Do we really need the default command? ;-) 

Trying without, but then users end up typing things like

script -s -- nc -q0 seashells.io 1337 | sed 's/$/\\r/'

There's a lot that can go wrong, and I would complain about that kind of
interactive experimentation and required shell trickery.  That's why I
proposed to capture these problems in a default command and issue

script -s

Alternatively, we can expect users to wrap such complexity around script
and invent their own little tools.  What --stream adds over piping is
then limited, still better but to me it feels incomplete.  I haven't
tested if it works at all, isatty() inside scripts and such.

Your choice?

-Rick

  parent reply	other threads:[~2018-12-10 14:48 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-06 11:43 PATCH: script: Introduced a streaming output command Rick van Rein
2018-12-10 11:46 ` Karel Zak
2018-12-10 12:47   ` Rick van Rein
2018-12-10 14:47   ` Rick van Rein [this message]
2018-12-17  9:43     ` Karel Zak

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=5C0E7C8D.2030307@openfortress.nl \
    --to=rick@openfortress.nl \
    --cc=kzak@redhat.com \
    --cc=util-linux@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).