1
0
mirror of https://github.com/irssi/irssi.git synced 2024-11-03 04:27:19 -05:00

Merge pull request #1393 from ailin-nemui/eval-help

minor rendering fix in eval help
This commit is contained in:
ailin-nemui 2022-06-30 23:25:35 +02:00 committed by GitHub
commit 0bf18beed7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,18 +10,22 @@
%9Description:%9 %9Description:%9
Evaluates the given commands and executes them; you can use internal Evaluates the given commands and executes them; you can use internal
variables and separate multiple commands by using the ';' character. variables and separate multiple commands by using the `;' character.
If the command contains a string with '$', '\' or ';' those characters If the command contains a string with `$', `\' or `;' those characters
need to be escaped: need to be escaped:
'$' -> '$$'
'\' -> '\\' (or even '\\\\', depending on where they are used) `$' -> `$$'
';' -> '\;' `\' -> `\\' (or even `\\\\', depending on where they are used)
`;' -> `\;'
%9Examples:%9 %9Examples:%9
/EVAL echo I am connected to ${S} on ${chatnet} as ${N} /EVAL echo I am connected to ${S} on ${chatnet} as ${N}
/EVAL echo My user privileges are +${usermode}; echo Let's party! /EVAL echo My user privileges are +${usermode}; echo Let's party!
to print '1;2$3\4': /EVAL echo 1\;2$$3\\4
to print `1;2$3\4':
/EVAL echo 1\;2$$3\\4
%9References:%9 %9References:%9