[squeak-dev] The Inbox: System-dtl.1164.mcz
K K Subbu
kksubbu.ml at gmail.com
Wed Jun 10 13:50:09 UTC 2020
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.
Regards .. Subbu
More information about the Squeak-dev
mailing list
|