This shows you the differences between two versions of the page.
— |
echo [2006/08/01 03:13] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ======Synopsis:====== | ||
+ | __echo__ [<anything>] | ||
+ | |||
+ | ======Description:====== | ||
+ | This command prints its arguments back to the screen. That's it. It | ||
+ | is useful for printing status messages from inside scripts, or inside | ||
+ | hooks for redefining server messages. | ||
+ | |||
+ | The [[ECHO]] command is also the only command (one of two, actually; see | ||
+ | [[XECHO]]) that can write to the screen when [[set DISPLAY]] is off. [[ECHO]] | ||
+ | now has no length limitation, it can display any string within the confines of | ||
+ | memory. | ||
+ | |||
+ | ======Other Notes:====== | ||
+ | [[ECHO]] will not normally expand variables unless it is used inside an alias. | ||
+ | To force expansion, use [[EVAL]] or set [[set INPUT_ALIASES|INPUT_ALIASES]] on. | ||
+ | This is not a bug, it is an intentional feature common to all commands. | ||
+ | |||