[squeak-dev] The Inbox: System-dtl.1164.mcz

David T. Lewis lewis at mail.msen.com
Wed Jun 10 16:04:13 UTC 2020

On Wed, Jun 10, 2020 at 07:20:09PM +0530, K K Subbu wrote:
> On 09/06/20 1:16 am, commits at source.squeak.org wrote:
> >----- Method: SmalltalkImage>>documentPath (in category 'command
> >line') ----- documentPath + 	"Answer the absolute path of the
> >document passed to the VM or nil if none."
> This doesn't seem to be true with the unix port. It passes the document 
> name as given in the command line. I just tried:
>  $ run images/SpurVMMaker.image ./dummy.st hello world
> Here is what I see:
> {SmalltalkImage current documentPath.
> SmalltalkImage current vmPath.
> SmalltalkImage current imagePath.
> SmalltalkImage current imageName}
>  #('./dummy.st'
> '/opt/share/squeak/sqcogspurlinuxht/lib/squeak/5.0-201804100527/'
> '/opt/share/squeak/images'
> '/opt/share/squeak/images/SpurVMMaker.image')
> This could create problems because the relative path for the image and 
> document could be different (as in this case).
> If a script is used to launch the vm, the working directory of the same 
> must be passed through the environment for resolving relative document 
> path in the image.

Yes that could cause problems. But I think that this is existing behavior,
not anything related to System-dtl.1164.mcz, is that right?

If the system does not find ./dummy.st in this case, it might be necessary
to use a fully qualified path to the document file.


More information about the Squeak-dev mailing list