Re: difference in exec/3 for Windows and Unix (0931)

From: Kish Shen <k.shen_at_icparc.ic.ac.uk>
Date: Thu 03 May 2001 07:19:35 PM GMT
Message-ID: <3AF1AF47.9010DB7B@icparc.ic.ac.uk>
This may or may not be related to 0931, but when using
the main branch ECLiPSe, and doing the following:

[eclipse 3]:  exec([eclipse,  '-e',  'writeln(hello)'],[], P).

P = 3070
Yes (0.00s cpu)
[eclipse 4]: syntax error: unexpected token in compile_stream(4)

eclipse would invoked the installed version of eclipse, so it is not the
same as the main branch eclipse. I don't know why this would give the
syntax error.

Invoking the same eclipse works:

[eclipse 5]: argv(0, E), exec([E, '-e', 'writeln(hello)'],[], P).

E =
"/a/tempest/extra1/usr_local_eclipse/rotds/rotd-2001-05-02a/i386_linux/install/bin/i386_linux/eclipse.exec"
P = 3072
Yes (0.00s cpu)
[eclipse 6]: hello
Received on Thu May 03 20:19:36 2001

This archive was generated by hypermail 2.1.8 : Wed 16 Nov 2005 06:08:06 PM GMT GMT