Hi Maurice,
On 27.03.2013 19:22, Maurice Batey wrote:
> On Wed, 27 Mar 2013 10:56:19 +0100, Rony wrote:
>
>> file=.File~new("/home/user/UKFSN list") -- create a file object representing a physical file
>> say file~isDirectory -- is it a directory ?
>
> Similar construct fails as follows:
>
> 3 *-* file=.File~new("/home/user/.test/space in name") -- create a file object
> representing a physical file
> REX0097E: Error 97 running /home/user/rx/test line 3: Object method not found
> REX0476E: Error 97.1: Object ".FILE" does not understand message "NEW"
>
> ("space in name" *is* a directory!)
>
Hmm, it seems that you are using a version of ooRexx that does not have the File class implemented
according to the error message that you receive.
Not sure when the file class made it into ooRexx (I thought starting with 4.x), but ooRexx 4.1.2
(the latest version) does have it. (Just looked for a Linux box with the oldest installed ooRexx
which is at 4.1.1 and has the file class.)
Maybe you should really try to upgrade your ooRexx, if possible to the latest version.
Just try out the respective installation package from
<
http://sourceforge.net/projects/oorexx/files/oorexx/4.1.2/>. If that does not work out, then you
can always try to build the latest version of ooRexx right on your box.
AFAIK there are quite a few Linux-savvy people on this list/group that can help you through (it is
rather easy, once one knows what is needed; e.g. you should have "autotools" installed as Uli
Zinngrebe mentioned, because then building and installing ooRexx becomes a breeze).
---rony