1 <!-- Copyright (C) 2003 Red Hat, Inc. -->
2 <!-- This material may be distributed only subject to the terms -->
3 <!-- and conditions set forth in the Open Publication License, v1.0 -->
4 <!-- or later (the latest version is presently available at -->
5 <!-- http://www.opencontent.org/openpub/). -->
6 <!-- Distribution of the work or derivative of the work in any -->
7 <!-- standard (paper) book form is prohibited unless prior -->
8 <!-- permission is obtained from the copyright holder. -->
13 ><meta name="MSSmartTagsPreventParsing" content="TRUE">
16 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
19 TITLE="eCos Reference Manual"
20 HREF="ecos-ref.html"><LINK
22 TITLE="Common Commands"
23 HREF="common-commands.html"><LINK
25 TITLE="Common Commands"
26 HREF="common-commands.html"><LINK
29 HREF="baudrate-command.html"></HEAD
40 SUMMARY="Header navigation table"
49 >eCos Reference Manual</TH
57 HREF="common-commands.html"
71 HREF="baudrate-command.html"
82 NAME="ALIAS-COMMAND">alias</H1
90 >alias -- Manipulate command line aliases</DIV
92 CLASS="REFSYNOPSISDIV"
120 CLASS="INFORMALTABLE"
172 >The name for this alias.</TD
205 >Replacement value for the alias.</TD
235 > command is used to maintain simple command
236 line aliases. These aliases are shorthand for longer expressions.
237 When the pattern %{name} appears in a command line, including in a script,
238 the corresponding value will be substituted. Aliases may be nested.
241 >If no value is provided, then the current value of the alias is displayed.
244 >If the system supports non-volatile configuration data via the
249 HREF="persistent-state-flash.html"
250 >the Section called <I
251 >Persistent State Flash-based Configuration and Control</I
254 then the value will be saved and used when the system is reset.
278 >alias joe "This is Joe"</B
281 Update RedBoot non-volatile configuration - continue (y/n)? n</PRE
303 'joe' = 'This is Joe'</PRE
309 >Use an alias. Note: the <B
312 > command simply echoes the command to to console.
334 >Aliases can be nested.
346 >alias frank "Who are you? %{joe}"</B
349 Update RedBoot non-volatile configuration - continue (y/n)? n
356 Who are you? This is Joe</PRE
362 >Notice how the value of %{frank} changes when %{joe} is changed since
363 the value of %{joe} is not evaluated until %{frank} is evaluated.
375 >alias joe "This is now Josephine"</B
378 Update RedBoot non-volatile configuration - continue (y/n)? n
385 Who are you? This is now Josephine</PRE
397 SUMMARY="Footer navigation table"
408 HREF="common-commands.html"
426 HREF="baudrate-command.html"
442 HREF="common-commands.html"