Dear Oliver,

Yves Jaradin has found the possible source of the bug: the shell script "oz" which calls emulator.exe. Can you try the following change, and check whether it solves your problem?

In the file "oz", go to line 69, and replace the line

        exec "$OZEMULATOR" $OZGUI -u $url -- "$@"

by

        exec "$OZEMULATOR" $OZGUI -u "$url" -- "$@"

The $url contains the path of the program you want to execute. The double quotes around it prevent the shell from interpreting its value as several arguments when it contains spaces.

If it works, we will patch the script for a future release.


Cheers,
raph


Oliver Mooney wrote:
Dear Torsten,

The issue appears for me when I call a compiled executable too! The shell locates the file successfully but the module manager doesn't seem able to handle paths with spaces.

This is using the 1.4.0 distribution from Gustavo Gutierrez's OS X Intel package.

It's a concern because I can't expect all my users to install the package on a path without spaces.

If I'm not missing something obvious I'll put it up on the bug tracker.

Thanks,
Oliver.


    Date: Sun, 20 Jan 2008 18:54:03 +0000
    From: Torsten Anders <[EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]>>
    Subject: Re: mozart-users Digest, Vol 15, Issue 19
    To: Mozart users < [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
    Message-ID: <[EMAIL PROTECTED]
    <mailto:[EMAIL PROTECTED]>>
    Content-Type: text/plain; charset="US-ASCII"; delsp=yes; format=flowed

    Dear Oliver,

    I just confirmed your problem, although I get a different error
    message (I tried it on the shell).

    $ ozengine '/path to/Functor.ozf'
    Unknown option 'to/Functor.ozf'.
    usage: /path/emulator.exe <options>
    -init <file> : init functor
    -u <url>     : application functor
    -- <args> ...: application arguments


    Anyway, you may try compiling your Oz application as executable
    (option -x) and calling the resulting executable directly.

    Best
    Torsten



------------------------------------------------------------------------

_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

_________________________________________________________________________________
mozart-users mailing list                               
[email protected]
http://www.mozart-oz.org/mailman/listinfo/mozart-users

Reply via email to