From 307330bee287dd5da75754bdf7804802472beba6 Mon Sep 17 00:00:00 2001 From: tg Date: Wed, 26 Sep 2007 19:26:58 +0000 Subject: [PATCH] =?UTF-8?q?be=20more=20accurate=20but=20terse=20regarding?= =?UTF-8?q?=20pipe=20sequences=20somehow,=20variables=20don=E2=80=99t=20pr?= =?UTF-8?q?opagate=20up=20much=20more=20often?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mksh.1 | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/mksh.1 b/mksh.1 index f14dbaa..cc289d2 100644 --- a/mksh.1 +++ b/mksh.1 @@ -1,7 +1,7 @@ -.\" $MirOS: src/bin/mksh/mksh.1,v 1.100 2007/09/09 19:18:59 tg Exp $ +.\" $MirOS: src/bin/mksh/mksh.1,v 1.101 2007/09/26 19:26:58 tg Exp $ .\" $OpenBSD: ksh.1,v 1.120 2007/05/31 20:47:44 otto Exp $ .\" -.Dd September 9, 2007 +.Dd September 26, 2007 .Dt MKSH 1 .Os MirBSD .Sh NAME @@ -5395,14 +5395,10 @@ mailing list or in the IRC channel at .Pa irc.freenode.net:6667 . .Pp -By the way, the most frequently reported bug is: +By the way, the snippet .Bd -literal -offset indent $ print hi \*(Ba read a; print $a # Does not show hi .Ed .Pp -This does not work because the last command of a pipe sequence -is executed in a subshell. -This is an -.Nm -feature which can be depended on by scripts. -Use co-processes to work around if necessary and possible. +does not work, because commands of a pipe sequence are executed in +a subshell (but you can usually use co-processes instead of pipes).