File: eval

package info (click to toggle)
irssi 1.4.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 10,224 kB
  • sloc: ansic: 64,103; sh: 4,970; perl: 2,734; makefile: 1,206
file content (35 lines) | stat: -rw-r--r-- 779 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

%9Syntax:%9

EVAL %|<command(s)>

%9Parameters:%9

    The commands to evaluate.

%9Description:%9

    Evaluates the given commands and executes them; you can use internal
    variables and separate multiple commands by using the `;' character.
    If the command contains a string with `$', `\' or `;' those characters
    need to be escaped:

        `$' -> `$$'
        `\' -> `\\' (or even `\\\\', depending on where they are used)
        `;' -> `\;'

%9Examples:%9

    /EVAL echo I am connected to ${S} on ${chatnet} as ${N}
    /EVAL echo My user privileges are +${usermode}; echo Let's party!

    to print `1;2$3\4':

    /EVAL echo 1\;2$$3\\4

%9References:%9

    https://github.com/irssi/irssi/blob/master/docs/special_vars.txt

%9See also:%9 CAT, CD, ECHO, EXEC