Functions
John Summerfied
debian at herakles.homelinux.org
Mon Mar 13 04:53:39 UTC 2006
hbrhodes wrote:
> i have a problem, i'm trying to get a function to work with RAR, an
> archiver for Linux.
> i'm typing in the following and all i get is the command listing for
> commands and switches:
>
> ----------------------------------------------------------------
> function rar { /dir/path/rar/rar ; }
>
> or
>
> rar () { /dir/path/rar/rar ; }
> ---------------------------------------------------------------
>
> neither one really works,
No surprise. You need to pass the args:
function rar()
{
/dir/path/rar/rar $@
}
Better tho to put rar in $PATH. If you don't want to do that, this works
too:
alias rar='/dir/path/rar/rar'
--
Cheers
John
-- spambait
1aaaaaaa at computerdatasafe.com.au Z1aaaaaaa at computerdatasafe.com.au
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/
do not reply off-list
More information about the fedora-list
mailing list