Node:actionsequence classes, Next:shellcommand classes, Previous:Command line classes, Up:Defining classes
Another way to specify actions is to use a class to select only a subset
of all the actions defined in the actionsequence. You do this by adding
a class name to one on the actions in action sequence by using a dot
.
to separate the words. In this case the symbol only evaluates
to `true' for the duration of the action to which it attached. Here
is an example:
links.onlysome shellcommands.othersymbols.onlysome
In the first case onlysome
is defined to be true while
this instance of links
is executed. That means that only actions
labelled with the class onlysome
will be executed as a result of
that statement. In the latter case, both onlysome
and
othersymbols
are defined to be true for the duration of
shellcommands
.
This syntax would normally be used to omit certain time-consuming actions, such as tidying all home directories. Or perhaps to synchronize certain actions which have to happen in a certain order.