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

Re: [Feature Request] Add ability to define functions as noglob



Aryn Starr wrote on Thu, 15 Aug 2019 14:54 +00:00:
> A lot of functions need to be noglob.

Why?  What's the use-case?  Maybe noglob isn't the right tool for the job.

> My current workflow is to define the function as `function sth-raw()`
> and then `alias sth='noglob sth-raw'`. (I use different names so that
> I can use `which sth-raw` to easily inspect the source.)

You don't need to use different names.  «which foo» would only expand
«foo» if it were a global alias, which in your case it isn't.




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