Smalltalk developers preferred to do their scripting within the Smalltalk IDE, so they could use their familiar tools.
And then save their "scripting" as a text file ("fact.st").
$ cat fact.st Stdio stdout nextPutAll: 100 factorial printString; nextPut: Character lf.! SmalltalkImage current snapshot: false andQuit: true!
$ bin/pharo --headless Pharo10-SNAPSHOT-64bit-502addc.image fact.st
Smalltalk developers preferred to do their scripting within the Smalltalk IDE, so they could use their familiar tools.
And then save their "scripting" as a text file ("fact.st").
And then "run" that text file ("fact.st") from the commandline. 93326215443944152681699238856266700490715968264381621468592963895217599993229915608941463976156518286253697920827223758251185210916864000000000000000000000000