mozart-users Digest, Vol 15, Issue 20
Raphael Collet
raphael.collet at uclouvain.be
Mon Jan 21 14:29:33 CET 2008
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 <torsten.anders at plymouth.ac.uk
> <mailto:torsten.anders at plymouth.ac.uk>>
> Subject: Re: mozart-users Digest, Vol 15, Issue 19
> To: Mozart users < users at mozart-oz.org <mailto:users at mozart-oz.org>>
> Message-ID: <EEA932F8-2FE9-4380-B578-7D182AC898D4 at plymouth.ac.uk
> <mailto:EEA932F8-2FE9-4380-B578-7D182AC898D4 at plymouth.ac.uk>>
> 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 mozart-users at mozart-oz.org
> http://www.mozart-oz.org/mailman/listinfo/mozart-users
More information about the mozart-users
mailing list