> > 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.
>
[PT] Yep. It is just checking if there is a system-wide X
resource file. If there is one, then add its settings to the
resources database. There is also a a user level one
called $HOME/.Xresources that should be checked the
same way as well.
--
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.