[BUG]CodeLoader(Object)>>error: - Trying to use a startup script in 3.6

Ned Konz ned at bike-nomad.com
Mon Oct 13 16:34:33 UTC 2003


On Monday 13 October 2003 09:20, Ned Konz wrote:
> On Monday 13 October 2003 07:13, Nick Brown wrote:
> > I'm running this with the following command:
> > squeak squeak3.6-5424-basic.image myscript.st
> >
> > which produces exactly the same error. I've confirmed that these script
> > works fine in my usual 3.5 (update 5150) image when run in the same way.
> >
> > Could it be that Squeak is attempting to file-in the script rather than
> > run it? I had a look through classes CodeLoader and ProjectLauncher, but
> > it doesn't look to me like any methods have been changed in there for
> > quite a while. Any ideas what might be broken?
>
> on my Linux system, it works if I do this:
>
> squeak squeak3.6-5424-basic.image file://$PWD/myscript.st
>
> That is, I have to make a full file:// URL out of it ($PWD is the full name
> of the current directory).

And I guess I should also note that the description of scripts in the Unix 
Squeak manpage doesn't seem to work with a stock image.

There are two problems:

* relative filenames don't work right (they need to be translated into full 
file:// URLs)
* the 'shebang' line is not skipped properly:

#!/usr/bin/squeak --
Smalltalk inform: 'hello there.'.

should work, but Squeak chokes on the first line.

-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE



More information about the Squeak-dev mailing list