On Sun, 17 Sep 2006 11:13:14 -0300, Shmuel Metz (Seymour J.) <[EMAIL 
PROTECTED]> wrote:
>
> So, is there a way to call a REXX and have it change your copy of the
> environment?
> 
I believe that if it's called from Rexx as a subroutine (CALL X arg, ...)
or a function (X( arg, ...)), or from the assembler (or equivalent) API
it will execute in the caller's process space and share the caller's
environment.  All ways of calling it from shell will generate a fork or
a spawn, and the EXEC will execute with a private copy of the environment.
"." (sh) or "source" (tcsh) is not an option since each of those constructs
causes the interpreter to invoke itself (recursively?) and requires the
caller's syntax in the called file.

-- gil
-- 
StorageTek
INFORMATION made POWERFUL

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to