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

Re: Using aliases or functions in bash script



On Thu, Jan 24, 2008 at 03:55:51AM +0000, T o n g wrote:
> 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.

    source ~/.bashrc

-- 
Ken Irving, fnkci+debianuser@uaf.edu


Reply to: