[squeak-dev] MacOSX VM and scripts

Bergel, Alexandre bergel at iam.unibe.ch
Thu Sep 4 10:57:10 UTC 2008


In the script you provide yes. in an xterm this is not mandatory.

Cheers,
Alexandre


On 4 Sep 2008, at 09:38, laurent laffont wrote:

> pwd must be lowercase, and its a  method wich returns absolute path  
> of current directory.
>
> ex:
>
> lol at magalo:~
> $ cd /usr/local/bin/
>
> lol at magalo:/usr/local/bin
> $ pwd
> /usr/local/bin
>
> try
>
> Users/alexandrebergel/Desktop/Smalltalk/Squeak/Squeak\  
> 3.8.12beta4U.app/Contents/MacOS/Squeak\ VM\ Opt `pwd`/ready.image  
> `pwd`/test.st
>
> surrounding pwd with `
>
> Laurent Laffont
>
> On Thu, Sep 4, 2008 at 9:24 AM, Bergel, Alexandre  
> <bergel at iam.unibe.ch> wrote:
> I am now trying to provide a script name in the command line to  
> execute a script after having open the image. However scripts are  
> not loaded apparently.
> The command below simply opens the image, without loading the script:
>
> -=-=-=-=-=-=-=-=-=-=-=-=
> Users/alexandrebergel/Desktop/Smalltalk/Squeak/Squeak\  
> 3.8.12beta4U.app/Contents/MacOS/Squeak\ VM\ Opt $PWD/ready.image  
> $PWD/test.st
> -=-=-=-=-=-=-=-=-=-=-=-=
>
> in which test.st simply contains 10/0.
> I would have expected a debugger to be open.
>
> I tried various combinations with file:/$PWD/test.st, file:$PWD/ 
> test.st, file://$PWD/test.st but this does not help to load the  
> script.
>
> Any idea?
>
> Cheers,
> Alexandre
>
>
> On 3 Sep 2008, at 17:53, Bert Freudenberg wrote:
>
>
> Am 03.09.2008 um 17:42 schrieb Bergel, Alexandre:
>
> Dear List,
>
> I try to run the OSX VM from the  command line. I run the following  
> command, where ready.image is a Squeak image:
>
> /Users/alexandrebergel/Desktop/Smalltalk/Squeak/Squeak\  
> 3.8.12beta4U.app/Contents/MacOS/Squeak\ VM\ Opt ready.image
>
> A mac file browser opens and apparently is waiting for me to select  
> an image. The image is not run therefore. This is strange since I  
> provided the name of one.
>
>
> You need to give the full path to the image.
>
> - Bert -
>
>
>
>
> -- 
> _,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
> Alexandre Bergel  http://www.bergel.eu
> ^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.
>
>

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.








More information about the Squeak-dev mailing list