<?xml version='1.0' encoding='ISO-8859-1'?>
     <rss version='2.0'>
      <channel>
       <title>rearg.lha utility/shell - Comments</title>
       <link>https://os4depot.net/?function=comments&amp;file=utility/shell/rearg.lha</link>
       <description>Adds flexibility to Alias command</description>
       <language>en-gb</language>
       <lastBuildDate>Mon, 13 Apr 2026 00:44:05 +0200</lastBuildDate>
       <image>
        <title>OS4Depot.net</title>
        <url>https://os4depot.net/images/rss.gif</url>
        <link>https://os4depot.net</link>
       </image><item> <title>AlexC (66.229.32.101) @ 01 Dec 2005, 05:46.07</title> <link>https://os4depot.net/?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\'d share it with you in case you
didn\'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:

\'Command FOO ARG1 ARG2 BAR\'

If you want your alias to insert ARG1 and ARG2 between FOO and BAR, instead of
using:

\'Alias Test ReArg BAR 4 Command FOO\'

you can simply use:

\'Alias Test Command FOO [] BAR\'

Another advantage of using the brackets is that the argument count doesn\'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

\'Test A B C D E\' will become \'Command FOO A B C D E BAR\'
&lt;/pre&gt;</description> <guid isPermaLink='false'>1133412367</guid> <pubDate>Thu, 01 Dec 2005 05:46:07 +0100</pubDate></item></channel> </rss>