INCLAN: alias: Difference between revisions

From CYANA Wiki
Jump to navigation Jump to search
Line 9: Line 9:
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.
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.


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

Revision as of 13:18, 13 August 2009

Synopsis

alias [name statement]

alias

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.

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