|Home ⋅ All Commands ⋅ Grouped Commands ⋅ Modules ⋅ FAQ|
command if all
test-conditions are satisfied. The
are keywords with possible arguments from the list below
and are separated by commas or whitespace. They include:
Version operator x.y.z,
EnvMatch varname pattern,
A test-condition prefixed with "!" is negated.
Test (Version >= 2.5.11) Echo 2.5.11 or later.
The EnvIsSet varname test-condition is true if the given environment variable is set. The EnvMatch varname pattern test-condition is true if pattern matches the given environment variable value. The pattern may contain special "*" and "?" chars.
test-condition is true if the edge in the given direction currently
contains the pointer.
test-condition is true if the edge in the given direction currently is
active. An edge is active, and can contain a pointer if either a
command is bound to it or edge scroll is available in that
direction. The direction may be one of
Any, North, Top, Up, West, Left, South, Bottom,
Down, Right and East.
If no direction is specified Any is assumed.
The Start test-condition is the same as either Init or Restart. It is only true on startup or restart prior and during StartFunction execution. The Exit test-condition is the same as either Quit or ToRestart. It is only valid on shutdown during ExitFunction function execution.
Additionally, if a test-condition name is not recognized, the Error return code is set and the command is not executed.
test-conditions test for existence of the given [F]ile (possibly
with [R]ead/[W]rite permissions), e[X]ecutable (in
or the [I]mage (in ImagePath).
AddToFunc StartFunction I Test (Init) Exec exec xterm AddToFunc VerifyVersion + I Test (Version 2.5.*) Echo 2.5.x detected + I TestRc (NoMatch) \ Test (!Version 2.6.*) Echo Future version + I TestRc (NoMatch) \ Echo 2.6.x is detected Test (F $[FVWM_USERDIR]/local-config) Read local-config Test (X xterm-utf16) Exec exec xterm-utf16
fvwm 2.7.1 (from cvs)