Re: Functions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx  Z1aaaaaaa@xxxxxxxxxxxxxxxxxxxxxxx
Tourist pics http://portgeographe.environmentaldisasters.cds.merseine.nu/

do not reply off-list


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux