backup script

Marianne Taylor mataylor
Mon May 17 11:57:27 PDT 2004


On December 27, 2003 05:09, Joel Hammer wrote:
> You may need to have a space between a '[' and the contents of the
> comparison:
>
> if [$?-eq0];  # Wrong
>
> if [ $? -eq 0 ]; # Right
>     ^        ^
>
> I am not sure if the spaces are needed between the members of the
> comparison.
>
> Joel

Thanks Joel that got it working.
Marianne



More information about the Linux-users mailing list