ARexx (76/77)

From:Neil Bothwick
Date:30 Apr 2001 at 11:09:26
Subject:Re: Modifying the path

Joseph Duchâtelet said,

> Hello Neil

> On 29-Apr-01, you wrote:

>> Joseph Duchâtelet said,
>>
>>> Is it possible at all to modify the path from an arexx script ? (dos
>>> equivalent:path mypath add )
>>
>> No, an ARexx script inherits the path of its calling program, or that of
>> the resident process otherwise. The path used by the ARexx resident
>> process is whatever was in place at the time rexxmast was run, which is
>> why you should start rexxmast as late as possible in the startup
>> process, ideally after LoadWB.

> - To me 'the path' was composed of a certain number of drawers that you
> define with the 'Path' command plus the 'current directory (path??)'
> depending on how the task was started.
> I would define both parts as 'The fixed path' and 'the additional task path'

> - If this is right i can see clearly that the 'additional task path' is
> something your script inherits and can't modify.
> - However, form a shell i am able using DOS commands or a DOS script to
> 'Add' new drawers to 'the fixed path'
> Aren't hose shells tasks too ? Why can they modify 'the fixed path' and
> other tasks not ?

Apparently not. A script launched from a shell appears to use the path
from rexxmast. Presumably, rexxmast is the calling program in this case,
not the shell in which you ran rx.

there is one way to add a single directory to the path within a script,
by making that the current directory with pragma().

Cheers

Neil



Neil Bothwick - New Media Editor, Amiga Active Magazine

I'm in shape ... Rounds a shape isn't it?

ARexx mailing list - No flames, no overquoting, no crossposting.
Unsubscribe: Blank mail to mailto:arexx-unsubscribe@onelist.com

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/