@ALIAS@alias <alias> = <command> @alias <alias> = :clear Sets, clears, and lists command aliases. The first format sets an alias, while second clears it. If no command is given, aliases starting with the specified alias name are listed. With no arguments all aliases are listed. $ substitution is used to make aliases more useful. $0 is the command name, $1 is the first space-delimited argument, $9 is the 9th argument. (You can only get the first 9 arguments individually.) $* gives the full argument list without leading spaces stripped. $-0 would give the same list with the leading spaces stripped. $-1 gives all but the first argument, $-9 gives everything after the 9th argument. $$ gives a single $. Example: alias page=$0 $1=$-1 Example: alias greet=:tosses $1 a big $2 in greeting. Aliases only work outside of editors and can be overridden using ! by wizards. feaelin@kemenel.org Glow Command: @alias / Revised 2004 January 14 08:44 (Wednesday) © 2004 Iain E. Davis |
![]() |
General People Recreation/Fiction GlowMuck Links |