alias - creates or prints a command alias


    alias [<command> [<value>]]


With no arguments, this will display all aliases and their values. Given just a command, it will report the value of the command if it is currently aliased. If value is a null string, the command will be unaliased. Otherwise, this will make command an alias for value.

Aliases cannot override valid commands. If an alias and a command have the same name, the command will have preference. It may be possible to rename a valid command to a new name and then create an alias in its place if that is desired.


To make "hello" print "hi there":

    lens> alias hello {puts "hi there"}
    puts "hi there"
    lens> hello
    hi there



Last modified: Mon Jun 15 15:12:52 EDT 1998