Re: bash scripts conditionals and substrings

Página superior
Adjuntos:
Obtener este mensaje como un correo
+ (text/plain)
Eliminar este mensaje
Responder a este mensaje
Autor: Craig White
Fecha:  
A: plug-discuss
Asunto: Re: bash scripts conditionals and substrings
On Mon, 2005-02-28 at 21:22 -0700, Kevin Brown wrote:
> Craig White wrote:


>
> if [ conditions ]
>     then
> fi

>
> A few things to note, spaces are between the brackets and the conditions so:
> if [ conditions ]
> will work, but:
> if [conditions]
> will not work.
>
> Second, = is the assignment variable, == is the test conditional
>

---
sheesh - I think it was the same thing a couple of weeks ago (brackets)
- generally, brackets are given as 'optional' arguments so I tend to
look right past them in a book.

OK - good to know about == I don't think I ever understood that before
now - I'm real close now

Craig

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss