Sorry,
forgot original message
> -----Original Message-----
> From: Santimore, Matthew
> Sent: Friday, May 12, 2000 08:48
> To: Sun Managers (E-mail)
> Subject: Summary: variable exp
>
> Thanks to all that responded.
> here are a few that helped the most
>
>
>
> It means if $inst not defined, use the value following the ':-', which
> in this case is nothing. This will twig the -z flag without causing the
> shell to complain about null variables (not needed in ksh).
>
> Tom
>
>
>
>
> Means;
> if the varibale inst is set with a value use that value, if it is not set
> with a
> value
> then assign } to the variable inst
>
> D.T.
>
>
> ORIGINAL POST
>
> Gentlemen,
>
> Looking for a little help
>
> regular shell script
>
> #!/bin/sh
>
>
> if [ -z "${inst:-}" ]
>
>
> I know it is testing for the existance of value of inst.
>
> what does the :- mean?
>
> any help is appreciated
>
>
> Matt Santimore
> Compuware Corp
>
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:08 CDT