On Wed, Oct 23, 2013 at 5:37 PM, Paul Gilmartin <paulgboul...@aim.com>wrote:

> 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 "." )
> >
> So, I asked myself, "Why pipecurrent?"  Then I saw:
>
> >*> set -o pipecurrent *
> >*> jessym A | read -r myvar*
> >*> echo $myvar*
> >B
> >
> ... but "pipecurrent isn't necessary if you do:
>
>     jessym A | ( read -r myvar*; echo $myvar* )
>
>
I don't think that the above works.

A couple of requirements to consider:

- the variable (myvar) wants to be set in the current shell, and not a
subshell

- jessym needs to run in the current address space.  This is why
 myvar=$(jessym A) doesn't work

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN

Reply via email to