Site Tools


getcommands
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


getcommands [2006/08/01 03:45] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +# $EPIC: getcommands.txt,v 1.2 2006/08/01 03:22:01 sthalik Exp $
 +======Synopsis:======
 +$__getcommands__() \\ 
 +$__getcommands__(<pattern>)
 +
 +======Technical:======
 +   * If no argument is given, the return value is a word list of all built in commands.
 +   * If an argument is given, the return value is a word list of all built in commands that match the given pattern.
 +   * Multiple patterns may be specified; the result is a concatenated list of return values as if each pattern had been processed individually. Specifically, any duplicates will NOT be removed.
 +
 +======Practical:======
 +This is mostly useful for writing completion scripts.
 +
 +======Returns:======
 +A word list of the names of built in commands matching the pattern(s).
 +
 +======Example:======
 +$getcommands(*irc*)                   returns "IRCHOST IRCNAME IRCUSER"
  
getcommands.txt · Last modified: 2006/08/01 03:45 by 127.0.0.1