Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: globbing and quoting in a function



On Wed, Jul 20, 2005 at 12:59:55AM +1000, Doug Kearns wrote:
> You'll need to quote the * as well.

Or use "noglob" as a prefix, which can be done using an alias:

    alias lsnew='noglob lsnew'

Then you can use "lsnew foo*" without quoting any wildcards.

(I vaguely recall that having an alias call a function of the same name
might cause a problem in some older zsh versions, but it works fine in
4.2.5.)

..wayne..



Messages sorted by: Reverse Date, Date, Thread, Author