version 1.65, 2021/03/08 02:47:28 |
version 1.66, 2022/03/31 17:27:25 |
|
|
parenthesis |
parenthesis |
.Pq Sq \&( . |
.Pq Sq \&( . |
If the macro name is not followed by an open |
If the macro name is not followed by an open |
parenthesis it is processed with no arguments. |
parenthesis, it is processed with no arguments. |
.Pp |
.Pp |
Macro names consist of a leading alphabetic or underscore |
Macro names consist of a leading alphabetic or underscore |
possibly followed by alphanumeric or underscore characters, e.g., |
possibly followed by alphanumeric or underscore characters, e.g., |
|
|
.Ic index(the quick brown fox jumped, fox) |
.Ic index(the quick brown fox jumped, fox) |
returns 16). |
returns 16). |
If the second |
If the second |
argument is not found index returns \-1. |
argument is not found, index returns \-1. |
.It Fn indir macro arg1 ... |
.It Fn indir macro arg1 ... |
Indirectly calls the macro whose name is passed as the first argument, |
Indirectly calls the macro whose name is passed as the first argument, |
with the remaining arguments passed as first, ... arguments. |
with the remaining arguments passed as first, ... arguments. |
|
|
.It Fn substr string offset length |
.It Fn substr string offset length |
Returns a substring of the first argument starting at the offset specified |
Returns a substring of the first argument starting at the offset specified |
by the second argument and the length specified by the third argument. |
by the second argument and the length specified by the third argument. |
If no third argument is present it returns the rest of the string. |
If no third argument is present, it returns the rest of the string. |
.It Fn syscmd cmd |
.It Fn syscmd cmd |
Passes the first argument to the shell. |
Passes the first argument to the shell. |
Nothing is returned. |
Nothing is returned. |