<?xml version='1.0' encoding='ISO-8859-1'?>
     <rss version='2.0'>
      <channel>
       <title>rearg.lha utility/shell - Comments</title>
       <link>http://www.openamiga.org/?function=comments&amp;file=utility/shell/rearg.lha</link>
       <description>Adds flexibility to Alias command</description>
       <language>en-gb</language>
       <lastBuildDate>Sun, 25 Oct 2026 15:50:12 +0000</lastBuildDate>
       <image>
        <title>OS4Depot.net</title>
        <url>http://www.openamiga.org/images/rss.gif</url>
        <link>http://www.openamiga.org</link>
       </image><item> <title>AlexC (66.229.32.101) @ 01 Dec 2005, 04:46.07</title> <link>http://www.openamiga.org/?function=comments&amp;file=utility/shell/rearg.lha</link> <description>&lt;STRONG&gt;By:&lt;/STRONG&gt;&amp;nbsp;AlexC (66.229.32.101)&lt;BR /&gt;&lt;pre&gt;Recently I learned something new, I thought I\&#039;d share it with you in case you
didn\&#039;t know it already...

Square brackets [] in aliases are substituted with the arguments provided on the
commandline.

Let say you have a command with a syntax such as:

\&#039;Command FOO ARG1 ARG2 BAR\&#039;

If you want your alias to insert ARG1 and ARG2 between FOO and BAR, instead of
using:

\&#039;Alias Test ReArg BAR 4 Command FOO\&#039;

you can simply use:

\&#039;Alias Test Command FOO [] BAR\&#039;

Another advantage of using the brackets is that the argument count doesn\&#039;t have
to be known ahead of time (it does with ReArg), in the example above BAR will
always be appended after the arguments, so

\&#039;Test A B C D E\&#039; will become \&#039;Command FOO A B C D E BAR\&#039;
&lt;/pre&gt;</description> <guid isPermaLink='false'>1133412367</guid> <pubDate>Thu, 01 Dec 2005 04:46:07 +0000</pubDate></item></channel> </rss>