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

Re: tilde syntax



On Thu, Jan 4, 2024, at 6:04 PM, Ray Andrews wrote:
> On 2024-01-04 14:49, Bart Schaefer wrote:
>> No, it turns "do nothing else" into "also act as a glob or pattern".
>> In this example, it's a glob. I tried to find something about that in the manual but it's one of those things where you need to know what to call it in words.  Searching for " $~ " hardly works.

Search for "${~spec}", or go here:

https://zsh.sourceforge.io/Doc/Release/Expansion.html#index-GLOB_005fSUBST_002c-toggle

>> What do you mean by "works"?  
> I mean the code does what I'm expecting.

This is thoroughly unhelpful.  Different people can expect different
behaviors, and no one here is psychic.  You need to explicitly state
what your expectations are.

-- 
vq




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