Re: variables within an alias command

2003-07-14 Thread Lorenzo Prince
Chris W. Parker staggered into view and mumbled: > Where do I define that? $HOME/.bash_profile should do. It holds all user-specific aliases and functions. Lorenzo Prince -- "...Unix, MS-DOS, and Windows NT (also known as the Good, the Bad, and the Ugly)." (By Matt Welsh) -- redhat-list mail

Re: variables within an alias command

2003-07-14 Thread Ian Mortimer
> I'll take 10 floggings for not knowing this... but... > > Where do I define that? posix shell and ksh have a nice feature called autoloading functions. You define an FPATH variable pointing to a directory and any files in that directory will be loaded as functions on demand. bash doesn't seem

RE: variables within an alias command

2003-07-14 Thread Chris W. Parker
Ian Mortimer wrote: > > The alias would look something like this (as I imagine it in my > > head): > > > > $ alias ald='ls -la $1|egrep ^d' > > You'll have to define it as a function: > > function ald { ls -la $1 | grep -E ^d; } I'll take 10 floggings for not knowin

Re: variables within an alias command

2003-07-14 Thread Ian Mortimer
> The alias would look something like this (as I imagine it in my head): > > $ alias ald='ls -la $1|egrep ^d' You'll have to define it as a function: function ald { ls -la $1 | grep -E ^d; } -- Ian -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mai

variables within an alias command

2003-07-14 Thread Chris W. Parker
Hello. Here is a quick run down of what I'm facing. $ alias all='ls -la' $ all /var/log This works because it's the as typing: $ ls -la /var/log but $ alias ald='all|egrep ^d' $ ald /var/log does not work because it's the same as typing: $ ls -la|egrep ^d /var/log which is out of order. Is