File: aliascommand.htm

package info (click to toggle)
extrema 4.3.6-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 19,212 kB
  • ctags: 6,452
  • sloc: cpp: 86,428; sh: 8,229; makefile: 814
file content (59 lines) | stat: -rw-r--r-- 2,339 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<HTML>
<HEAD>
<TITLE>ALIAS command</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">

<P><font size="+3" color="green"><B>ALIAS command</B></font></P>

<TABLE border="1" cols="2" frame="box" rules="all" width="590">
<TR>
<TD width="15%" valign="top"><B>Syntax</B>:</TD>
<TD width="85%" valign="top"><CODE>
ALIAS<br />
ALIAS name<br />
ALIAS name value<br />
ALIAS\EXPAND name value</CODE>
</TD></TR>
<TR>
<TD width="15%" valign="top"><B>Qualifiers</B>:</TD>
<TD width="85%" valign="top"><CODE>\EXPAND</CODE></TD></TR>
<TR>
<TD width="15%" valign="top"><B>Defaults</B>:</TD>
<TD width="85%" valign="top"><CODE>\-EXPAND</CODE></TD></TR>
<TR>
<TD width="15%" valign="top"><B>Examples</B>:</TD>
<TD width="85%" valign="top"><CODE>ALIAS XRED SET XAXISCOLOR RED</TD></TR>
</TABLE>
<P>
 The <CODE>ALIAS</CODE> command allows the user to create
 new commands by equating a keyword to a command string.  The command string must begin
 with a valid command.  For example, it cannot be a file name that is to be used with
 other commands (use a character variable for that).</p>
<p>
 If the <CODE>ALIAS</CODE> command is entered with no parameters, all
 the current aliases will be displayed.  If the <CODE>ALIAS</CODE>
 command is entered with one parameter, the parameter is assumed to be an alias name, and
 the command string associated with that name will be displayed.  If a
 <CODE>name</code> and a <CODE>value</code>
 are entered, and if <CODE>name</code> already exists as an alias,
 the command string value will be updated to the new <CODE>value</code>.
 If <CODE>name</code> does not exist, a new alias will be created.</p>
<p>
 Use the
 <CODE><a href="../DealiasCommand/dealiascommand.htm">DEALIAS</a></font></CODE>
 command to eliminate an alias.</p>
<p>
 If the <CODE>\EXPAND</CODE> qualifier is used, and if the second
 parameter is a character variable (or character expression), then the value of the 
 variable (or of the expression) will become the command string.  This allows you
 to construct commands in a script and alias them to single word commands.  For example:
 <font color="blue"><pre>
     TT = 'GRAPH X '
     VECTOR V 1
     INQUIRE 'Enter a vector >>' V
     ALIAS\EXPAND PLOT TT//VARNAME(V)
 </pre></font>
 and you can then just enter the new command <CODE>PLOT</code> to draw the graph.</p>
</BODY>
</HTML>