Re: quick bash question

Mike Frisch (mfrisch@saturn.tlug.org)
Tue, 18 Feb 1997 14:31:38 -0500 (EST)


On Tue, 18 Feb 1997, Jamie Sparks wrote:

> Hello,
>
> Can anyone tell me the correct syntax for the following?
>
> #! /bin/bash
>
> if [ some_string="blah" ]; then
> this=that
> some_other_thing=another_thing
> else
> this=yet_another_thing
> some_other_thing="syntax_is_tedious"
> fi
>
> My scripts don't puke when there's only one command after the 'then'
> and again after the 'else', but when I add more than one (as in the
> above), i get an error after the last line of the script.
>
> any help would be appreciated, thanks

#@%^#@%! Get a book on bash! This query has absolutely right being on
either of these mailing lists.

Mike.

======================================================================
Mike Frisch Email: mfrisch@saturn.tlug.org
Northstar Technologies WWW: http://a19b89.rogerswave.ca/~mfrisch
Newmarket, Ontario, Canada