From be5f917f07e6c4d4de643d307048281e87717a67 Mon Sep 17 00:00:00 2001 From: ailin-nemui Date: Thu, 30 Jun 2022 23:25:35 +0200 Subject: [PATCH] Merge pull request #1393 from ailin-nemui/eval-help minor rendering fix in eval help (cherry picked from commit 0bf18beed75e0423c7848908ebc4ba6f39cc96c7) --- docs/help/in/eval.in | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/docs/help/in/eval.in b/docs/help/in/eval.in index b0c904b4..c53c6248 100644 --- a/docs/help/in/eval.in +++ b/docs/help/in/eval.in @@ -10,18 +10,22 @@ %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 + 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) - ';' -> '\;' + + `$' -> `$$' + `\' -> `\\' (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 + + to print `1;2$3\4': + + /EVAL echo 1\;2$$3\\4 %9References:%9