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

Re: [OT] Using aliases or functions in bash script

On Sat, Jan 26, 2008 at 04:48:18PM +0000, T o n g wrote:
> On Wed, 23 Jan 2008 20:47:15 -0900, Ken Irving wrote:
> >> I'm wondering if you have read my OP or not. Read it again pls.
> > 
> >     source ~/.bashrc
> Guess that I am having bad lucks now, having two people replied without
> even reading my question, and the two replies are the only replies that I
> get... 

how does this not answer your question? Ken suggests that you need to
source .bashrc. That makes sense to me. The aliases defined in .bashrc
are not in scope unless you source .bashrc. You probably still need to
mess around with the shoptions to expand the aliases, but you
certainly can't expand them if they aren't even in scope.



Attachment: signature.asc
Description: Digital signature

Reply to: