[Newbies] Passing arguments to squeak image
subbukk at gmail.com
Thu May 17 12:45:35 UTC 2007
On Thursday 17 May 2007 4:38 pm, Bert Freudenberg wrote:
> You can pass an empty argument as first option after the image name
> followed by your other arguments, or deactivate the launcher in your
squeak squeak.image /dev/null arg1 bag arg2 of arg3 of chips
results in error. But
squeak squeak.image '' arg1 .....
and then printing "SmalltalkImage current extractParameters" gives:
a Dictionary('ARG1'->'bag' 'ARG2'->'of' 'ARG3'->'chips' )
The first case fails because String>>unzipped doesn't check for isEmptyOrNil
on self. With the patch:
self isEmptyOrNil ifTrue: [^''].
the first line works as expected.
Regards .. Subbu
More information about the Beginners