Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [Feature Request] Add ability to define functions as noglob
- X-seq: zsh-workers 44671
- From: "Daniel Shahaf" <d.s@xxxxxxxxxxxxxxxxxx>
- To: "Aryn Starr" <whereislelouch@xxxxxxxxxx>, zsh-workers@xxxxxxx
- Subject: Re: [Feature Request] Add ability to define functions as noglob
- Date: Thu, 15 Aug 2019 15:25:51 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=mime-version:message-id:in-reply-to :references:date:from:to:subject:content-type :content-transfer-encoding; s=fm1; bh=3bQn6TT1egOcGBbUfvQ9c7fcrB aHzbot6uuRO+IDZqM=; b=Me6HXjRZwDPdc1CMpVrjsbV9oibifCd/OLbUYH/sJB +g3+lq4A0eP5mTwGfW+BEB0pCCT5EG7N5CkOpVXVepp4qiigtkO+1t+mMjydZklR Gl1voPlPu0Pge6F24WA8F4x7hOFepflqnoRFXzeG4YXJsRldgSSHhF7R3v2HO/u6 CqwYB8+LfvQBu8GqD5t+nDUwY1z3q9jDfnGkq9KsDICg0sZa51vBcqdJrdDMT45E it+6q0SrK5PQh4oFbOR+UF74AeTeqnvS4odtcTaA3EiuFrtL1Jk7gLi7Ed+rrz8I z8Th6fzjTnXVaor71gLH7+4SRGYNRK74YMPcamaLVGqg==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=3bQn6TT1egOcGBbUfvQ9c7fcrBaHzbot6uuRO+IDZ qM=; b=JVN+Zp7jduZhH5J72hxpBTayc2YsCnlAZdUKA1qsg990ss/CiLV6pfNR6 SPprCgLmUV5oXsW93Bm+EAPpb1ybwTYV8nBr0z+mtcraWUAb2hibsJawiCM4oazl VXSyvqYc58AHuyAyEvsm2ilIijZa9H32hWVprdDX+3sm+xXBIdoW/4IyYdlNG6XV YJ/ZHATqm1HBAaFRQyE6N/HmVjI6P3XErLOPi3dkU2gLgMTHSjup4LgL9UjdWlwO 5807fBr+jLU3BhmyF9Amna5E2TFamO8HdTRLIvyuvQXJJgOTIPLmg2HWWFlarynO LY1Y3WZJW8g5a6o7+aPzm9/uL8/0A==
- In-reply-to: <A567183D-459B-491B-8B29-6A3F315D5E86@icloud.com>
- 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
- References: <A567183D-459B-491B-8B29-6A3F315D5E86@icloud.com>
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