I guess I hit the jackpot in answers, and a few solutions. Thanks to
all for the help. But I was almost through writing one message to
answer all, when I wiped out the wrong message. So I'm starting
again, one at a time, from the bottom, because that's where I found
more final answers.
> From: Jason Dommasch <[EMAIL PROTECTED]>
> Date: Monday, February 25, 2002 10:56 AM
>
> On Sun, Feb 24, 2002 at 05:27:49PM -0800, Dan Robinson wrote:
> > ...
> > I'd like to write "c [directory]" to obey alias c='cd [??] |ls'.
> > What is it that's needed here? Someone (Jason?) showed me it
worked
> > anyway, but now I think he left out the [directory] part.
> > ...
>
> Sorry for taking a while to respond. I'm on digest mode for the
mailing
> list.
I often take longer, especially when I'm booting to Linux to test,
then rebooting to DOS to write.
> A function is what's needed
> (as was mentioned in a recent post). I think the function
>definition you want is:
function c() { cd "$1" && ls | more }
And is that the equivalent of an alias, that I can put in bashrc, or
where?
Dan Robinson