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

Re: tilde syntax




On 2024-01-04 14:49, Bart Schaefer wrote:
Results of parameter expansion by default (in native zsh emulation)
are not subject to further interpretation.
Hmmm ... I don't think I've known that.  I've tended to think that once a variable is substituted out, there is no difference. 

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.
What do you mean by "works"?  

I mean the code does what I'm expecting.




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