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
- X-seq: zsh-workers 43786
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: <zsh-workers@xxxxxxx>
- 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
- Cms-type: 201P
- Dkim-filter: OpenDKIM Filter v2.11.0 mailout1.w1.samsung.com 20181107120125euoutp01ec2dc6503edfb2e33ceae42e227d866d~k1dWLQsmz1443514435euoutp01r
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1541592085; bh=CKNV/K7DSwSks+GlI0sCFpc1tB3vFhwFssGFjah2KWs=; h=Subject:From:To:Date:In-Reply-To:References:From; b=TW8dl0rNTHj20MGVhaIALVTnbe72xtt3qhqCORukxs9iY5SBeEYYTb4FdY+gQpcw3 jqhHfitPnfayhwKJNDVWIPcuwvBM8eyAd7dacuXiEYGE9uF6EJrmp55mz73KFCnftN mnJh0x4ynCzoiBFf177DIsroZ09FKXOJdqcyFbHw=
- In-reply-to: <CAKc7PVD9DiFRhTb1m5fTXeeW1RROYPpTmxKnCUfL-1FY7s_gKQ@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CGME20181107113210epcas3p4cf89233ec2bbb8a604435389f5123845@epcas3p4.samsung.com> <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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author