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

Re: redirect of "ls --color" causes problems

* Vineet Kumar (debian-user@virtual.doorstop.net) [030125 23:30]:
> * David Z Maze (dmaze@debian.org) [030125 20:14]:
> > So while bash and zsh have aliases, you can't actually do much with
> > them.
> come again?  What would you like to do with them that you can't?

Well, I just did a little reading of bash(1), and I see what you mean.

> The shell function seems like overkill.  I'd doubt that there's any
> performance difference, but the alias is easier syntactically and
> conceptually, for the newbie.

... so I recant this.  The alias will work, but I suppose it's best to
get in the habit of using shell functions instead.  (Although it's worth
noting that zsh's aliases are a bit more versatile than bash's (along
with just about everything else in zsh >=) ))

good times,
"Great spirits have always found violent opposition from mediocre minds. The
latter cannot understand it when a man does not thoughtlessly submit to
hereditary prejudices but honestly and courageously uses his intelligence."
  -- Albert Einstein

Attachment: pgpijT7S3f8fe.pgp
Description: PGP signature

Reply to: