> The following example is taken from the xinitrc file:
>
> <quote begins>
>
> if [ -f $sysresources ]; then
> xrdb -merge $sysresources
>
> fi
> <quote ends>
>
> Is the "fi" a token?
> How can I find out what "fi" does?
"fi" marks the end of the if statement (fi is if backwards)
> In the expression " -f $sysresources ", is bash looking for "$sysresources" in the
> enviroment?
> What does the "-f" signify?
I'm not an shell programming expert, but often -f is used to check if
a file exists. It may not be used in that manner here and I'm certain
someone will correct me if I'm wrong.
Dave
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com/RedHat-FAQ /RedHat-Errata /RedHat-Tips /mailing-lists
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject.