Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: This is probably known and wont-fix: zpty -w always adds a new line



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




Messages sorted by: Reverse Date, Date, Thread, Author