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

Re: Using aliases or functions in bash script



On Wed, 23 Jan 2008 23:21:37 +0000, Tzafrir Cohen wrote:

>> I have the following alias and function defined in my ~/.bashrc:
>> 
>>   $ alias rd
>>   alias rd='rmdir'
>> 
>>   $ type dt
>>   dt is a function
>>   dt () 
>>   { 
>>       pushd +$1
>>   }
>> 
>> How can I use them in my script? . . . 
> 
> So just use functions. . . 

I'm wondering if you have read my OP or not. Read it again pls.

thx

-- 
Tong (remove underscore(s) to reply)
  http://xpt.sourceforge.net/techdocs/
  http://xpt.sourceforge.net/tools/


Reply to: