quick bash question (fwd)

Jamie Sparks (jsparks@psrw.com)
Tue, 18 Feb 1997 12:51:12 -0500 (EST)


Got it. In translating csh to bash, I failed to change
an endif to a fi...

thanks anyway.

jamie

------------------
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

jamie