OS4 DepotLogo by Liksmaskaren 
(anonymous IP:,1170) 

   Bug tracker
   Locale browser

   o Audio (328)
   o Datatype (47)
   o Demo (180)
   o Development (533)
   o Document (21)
   o Driver (88)
   o Emulation (141)
   o Game (857)
   o Graphics (457)
   o Library (93)
   o Network (201)
   o Office (56)
   o Utility (806)
   o Video (61)

Total files: 3869

Full index file. Download
Recent index file. Download



Support the site

 File comments for:  Utility » Shell » rearg.lha


Description: Adds flexibility to Alias command
Download: rearg.lha
Version: 1.0
Date: 14 Dec 04
Category: utility/shell
FileID: 369
RSS Feed url: http://os4depot.net/modules/comments/rssfeed.php?file=utility/shell/rearg.lha

[Back to readme page]   [Add Comment]   [Refresh page]

Comment by: AlexC ( 01 Dec 2005, 05:46File version: 1.0
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

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

'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'

Copyright (c) 2004-2018 by Björn Hagström All Rights Reserved
Amiga OS and its logos are registered trademarks of Hyperion Entertainment