[Q] A new attempt to create a Squeak Test
Server + Image Fingerprints
David T. Lewis
lewis at mail.msen.com
Mon Dec 13 14:36:28 UTC 2004
On Mon, Dec 13, 2004 at 03:04:52PM +0000, Hannes Hirzel wrote:
>
> In a shell scripting language you have control structure, simple
> variables, sometimes arrays and dictionaries and tests.
>
> The basic pattern is mostly something like
>
> command -option1 arg1 -option2 arg2
> theNextCommand arg
You can do this:
CommandShell new
if: 'who'
then: ['the command succeeded']
else: ['the command failed']
This runs the external program or script, and evaluates one of
two blocks based on exit status of the program.
Dave
More information about the Squeak-dev
mailing list
|