On Wed, 23 Oct 2013 14:09:45 -0500, Kirk Wolf wrote:
>
>(*Note*: in the following examples, shell input is bold and follows "> ".
> Also: you need "set -o pipecurrent" when piping jessym output into "read"
>or "." )
> ...
>*> set -o pipecurrent *
>*> jessym A | read -r myvar*
>*> echo $myvar*
>B
>
Now, you've got me started. From:
Title: z/OS V1R13.0 UNIX System Services Command Reference
Document Number: SA22-7802-14
SHEX Shell execution environments
... Each command in a pipeline (such as "command | command") runs in a
child shell
environment, unless the pipecurrent shell option is in effect. If
pipecurrent is set on
(with set -o pipecurrent or set -P), then the last command of the pipeline
is executed
in the current shell environment. ...
Doesn't this mean that the left list of a pipeline will always run in a child
shell
environment (therefore a separate address space?), regardless of pipecurrent,
and that JES symbols of the parent shell will not be available in that child
shell
environment?
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN