version 1.553, 2017/05/29 15:43:48 |
version 1.554, 2017/05/29 18:06:34 |
|
|
.Ql no |
.Ql no |
if not. |
if not. |
.Pp |
.Pp |
Simple comparisons may be expressed by prefixing two comma-separated |
Comparisons may be expressed by prefixing two comma-separated |
alternatives by |
alternatives by |
.Ql == |
.Ql == |
or |
or |
|
|
if running on |
if running on |
.Ql myhost , |
.Ql myhost , |
otherwise by |
otherwise by |
.Ql 0. |
.Ql 0 . |
An |
An |
.Ql m |
.Ql m |
specifies a |
specifies an |
.Xr fnmatch 3 |
.Xr fnmatch 3 |
comparison - the first argument is the pattern and the second the string to |
comparison where the first argument is the pattern and the second the string to |
compare. For example, |
compare, for example |
.Ql #{m:*foo*,#{host}} . |
.Ql #{m:*foo*,#{host}} . |
|
.Ql || |
|
and |
|
.Ql && |
|
evaluate to true if either or both of two comma-separated alternatives are |
|
true, for example |
|
.Ql #{||,#{pane_in_mode},#{alternate_on}} . |
|
A |
|
.Ql C |
|
performs a search for an |
|
.Xr fnmatch 3 |
|
pattern in the pane content and evaluates to zero if not found, or a line |
|
number if found. |
.Pp |
.Pp |
A limit may be placed on the length of the resultant string by prefixing it |
A limit may be placed on the length of the resultant string by prefixing it |
by an |
by an |