INCLAN: alias: Difference between revisions

From CYANA Wiki
Jump to navigation Jump to search
No edit summary
 
(13 intermediate revisions by 3 users not shown)
Line 1: Line 1:
== Synopsis ==
== Synopsis ==


alias [''name'' ''statement'']
'''alias''' [''name'' ''statement'']


== Description ==
== Description ==


Defines a new alias name, i.e. an abbreviation, for the given  
Defines a new alias name, i.e. an abbreviation, for the given statement. The statement may contain an asterisk *to indicate where the command line parameters are to be inserted. Without parameters, '''alias''' gives a list of all currently defined aliases.
statement. The statement may contain an asterisk '''*''' to indicate  
where the command line parameters are to be inserted. Without  
parameters, '''alias''' gives a list of all currently defined aliases.


== Example ==
== Examples ==  


Make
'''alias ? "print \"\%{*}\  #Simulate a pocket calculator'''
alias vi "system vi"
'''? 5*7'''
35

Latest revision as of 11:54, 14 August 2009

Synopsis

alias [name statement]

Description

Defines a new alias name, i.e. an abbreviation, for the given statement. The statement may contain an asterisk “*” to indicate where the command line parameters are to be inserted. Without parameters, alias gives a list of all currently defined aliases.

Examples

alias ? "print \"\%{*}\  	#Simulate a pocket calculator
? 5*7
35