If I might intrude, I am currently working on a project that uses SOL10
or SUSE as a workstation for supporting a mainframe (zOS or VSE)
application.  FTP is the download and upload tool, and additional
scripting would be required to add and delete filename extensions.
Consequently, at present no extensions are used.  The directory names in
the path indicate the nature of the modules.  In this case (and, I
suspect, others) a search order would be:  current directory with
extension, current directory without extension, and similarly for the
other directories being searched.  

The search order for Windows could be the same without affecting the
function.



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Mark
Miesfeld
Sent: Thursday, June 26, 2008 08:53
To: Open Object Rexx Developer Mailing List
Subject: Re: [Oorexx-devel] File search order
inSysInterpreterInstance::resolveProgramName()

On Thu, Jun 26, 2008 at 7:39 AM, David Ashley <[EMAIL PROTECTED]>
wrote:
>
> I don't think that we should even be considering this option. In the
Unix
> world file extensions are meaningless to the operating system. They
are only
> useful to a human. The OS could care less. So I don't think we should
be
> making assumptions about the default/possible extensions that could be
in
> use on the system.

David,

This is for the search where an external program file is called as a
function.  Object Rexx has always had this functionality.  From the
docs on the search order:

5. Rexx functions in the current directory, with the current extension.
6. Rexx functions along environment PATH, with the current extension.
7. Rexx functions in the current directory, with the default extension
(.REX or .CMD).
8. Rexx functions along environment PATH, with the default extension
(.REX or .CMD).

The case that got dropped when Rick was reworking the code was found
by some or your excellent test cases. <grin>  Take for example:

::method "test_18"
   -- Create our external functions.
   path = .ooRexxUnit.dir || .ooRexxUnit.directory.separator
   src = .array~new()
   src[1] = "return arg(1)"
   call createFile src, path'SCIIF18'

   -- now do the tests
   If SCIIF18(1) Then r=1    ; Else nop
   self~assertSame(r, 1)

   -- now remove the external functions
   call deleteFile path'SCIIF18'

--
Mark Miesfeld

------------------------------------------------------------------------
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Oorexx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/oorexx-devel

Reply via email to