From: | Joseph Duchâtelet |
Date: | 29 Apr 2001 at 17:07:45 |
Subject: | Re: Modifying the path |
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.
Thank you for answering.
I don't think i understand this fully though.
- 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 ?
I would have expected that the OS manages the 'fixed path' information in a
way that you (each task) can acces it directly.
If this is not the case i wonder if this would be difficult to alter (OS 3.9
BB2 ?)
>> From the ARexx 1.15 addendum:
>
> CLI Structure.
> Each ARexx task is now given a CLI structure so that ADDRESS COMMAND will
> have a directory and path to inherit. ARexx uses a multiple inheritance
> mechanism whereby the task will inherit from its client if the client has
> a CLI structure, and otherwise uses the RexxMaster's path. In the latter
> case, the path is that in effect when "rexxmast" is run, by analogy with
> WorkBench.
>The CLI structure is kept synchronized with changes made to
> the current directory via Pragma('D',dirname).
I understand that the 'fixed part' is copied to the private areas of every
task. But if they can be changed all together
- from a shell 'path ..add' command
- or a DOS script containing this command & launched from a shell command,
why do arexx scripts, Iconx launched DOS scripts, Gui4Cli launched Dos
scripts loose this ability ?
It seems to me that not being able (i extrapolate from what i observed: it
is not even possible from the WorkBench or Dopus 'Execute Command'menu ) to
modify 'the fixed path' from any gui gadget is really a
frustrating limitation.
Joseph
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/