Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
[Feature Request] Add ability to define functions as noglob
- X-seq: zsh-workers 44670
- From: Aryn Starr <whereislelouch@xxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [Feature Request] Add ability to define functions as noglob
- Date: Thu, 15 Aug 2019 19:23:34 +0430
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1565880819; bh=ln7O7wQl6v/fCQkNbqewSYyBNEX0Pvc8wMlaFHEjyEs=; h=From:Content-Type:Date:Subject:Message-Id:To; b=U+j/7xMwPPo72ObcuU/5H9wWBK11GmpHdC2HehGyKGOcVg/hQHqr2hCi0TZi3fLT8 IkFUF+ZWuxill7uu8/ayaiikocpajiC1UFUFFxh1aD7goQtNUAtJCaxy7+C+WwCoF2 Xu/ZEd7jD7gO0MFikFlgbDViq/A71sdvlksQ1azj9LUECt79CuN8fisis8yHO7dh/S tU6N5eg1IS1c8A6GqfVx3MlCag6umFBHykAMLT15y8sUSSx0Vd9bk6CdfPSkhfVtf4 Cua46wL6nZTt95OyX2sGw82nGqXw4749GwnaAEX7Q9jvoYTHHtuVF8cgQV6vGeyzXh G0iQnBnb7E5OA==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
A lot of functions need to be noglob. 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.)
It’d be so much better if zsh adds a way to handle this more elegantly. Something like `noglobfun sth() ...`.
(I personally turn off all auto-corrections, otherwise I’d probably have had the same problem with nocorrect, too.)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author