zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <p.stephenson@samsung.com>
To: <zsh-workers@zsh.org>
Subject: Re: This is probably known and wont-fix: zpty -w always adds a new line
Date: Wed, 7 Nov 2018 12:01:23 +0000	[thread overview]
Message-ID: <1541592083.3768.3.camel@samsung.com> (raw)
In-Reply-To: <CAKc7PVD9DiFRhTb1m5fTXeeW1RROYPpTmxKnCUfL-1FY7s_gKQ@mail.gmail.com>

On Wed, 2018-11-07 at 12:31 +0100, Sebastian Gniazdowski wrote:
> Hello,
> according to man, zpty -w should add a new-line only if invoked with
> option -n. But the experience, e.g. the written command-line (to
> Src/zsh zpty process) always gets executed, even without -n – says a
> new-line is written also without -n.

It's the other way round:

  If the tt(-n) option is em(not) given, a newline is added at the end.

Can't see anything obviously wrong with the trivial implementation for
this.

If you don't give a write argument to zpty -w, so it's getting it from
reading stdin, it'll ignore the -n argument, but that's probably
obvious.

pws



  reply	other threads:[~2018-11-07 12:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20181107113210epcas3p4cf89233ec2bbb8a604435389f5123845@epcas3p4.samsung.com>
2018-11-07 11:31 ` Sebastian Gniazdowski
2018-11-07 12:01   ` Peter Stephenson [this message]
2018-11-07 12:21     ` Sebastian Gniazdowski
2018-11-07 12:30     ` Peter Stephenson

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=1541592083.3768.3.camel@samsung.com \
    --to=p.stephenson@samsung.com \
    --cc=zsh-workers@zsh.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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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).