Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: A question about filename generate
- X-seq: zsh-users 30335
- From: Perry Smith <pedz@xxxxxxxxxxxxxxxx>
- To: Marc Chantreux <mc@xxxxxxxxxx>
- Cc: safreya <safreya@xxxxxx>, zsh-users@xxxxxxx
- Subject: Re: A question about filename generate
- Date: Mon, 28 Jul 2025 09:25:26 -0500
- Arc-authentication-results: i=1; rspamd-696f8998d-gk2fp; auth=pass smtp.auth=a2hosting smtp.mailfrom=pedz@xxxxxxxxxxxxxxxx
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1753712738; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=RKKCimEUOKQUdAYifRwk592lrHKoySTX5ov2YAg3A2k=; b=uLcC+w6avZqi7YQVvMa+CoPKb0bO4HFLMcsLQeMYndJ3BYbGvqz/MWA5FQZxmZzT6U7KaP jgZq2c3Is7WkqHsroL+kfarrh6zoVm0Lsc8+SM0wqchPVmT+rZLEb0UOultPAEYU8zS47g H6fZTCoxhsueKXrFJuS/8OAbR1A9f+77GPWfUyfEUqt+Oj2FUQeYriq6/e0CLk2VJsc6pB eYN2M+lWSFobHgFvJD1qwpSNY1/d8jO3VTYRN5fwMun88hP3rRUsFdrduwbZLkrMz7Yq5/ TjYXMNH7BHDPuWS9/ngTwwTsUzViyNKXYxJfq1qJtxgZ9UaxoeDTrJEmIGD8uQ==
- Arc-seal: i=1; s=arc-2022; d=mailchannels.net; t=1753712738; a=rsa-sha256; cv=none; b=vGVVl6keEgBkSdDjPfFuZy22GP7wjVcVFMsJUZk0gi+3Rc0bmaMobLxi8rhyjIoVnbp/vm BuXOQJXSZGQepw6a6qrG7FqmFBmruGGWZ0hwVLe7jIwCowUYgt56olwxbF8PAVco6l4TQN ERhL+2hDmHzCb/d8xAFmO/e7rLSBZURAwcAHNpRzaaY+mBPPa452BgTBoW+4hkX6KyirdF d2h2JkxT/K+x2GkcRhrs51pikHQM0RnVZ2YcXRCCb9DKFJwNsMfMGIlyzhUwTOnSg+Nltd FyMa2TdKb/fBlIMq7lJ8ixcfkkPwr0uJztqCLLmsdXIQS/nFAO4nIfWjiwHtAw==
- Archived-at: <https://zsh.org/users/30335>
- In-reply-to: <aIbNDTYmpWuKN0E_@prometheus>
- List-id: <zsh-users.zsh.org>
- References: <tencent_69AD6695B9D82E219704D6455D01C5D08A05@qq.com> <aIXEhg9QG9uRxn0X@prometheus> <B9A879AD-9329-44EF-A079-D9A619AA9D6F@easesoftware.com> <aIbNDTYmpWuKN0E_@prometheus>
> On Jul 27, 2025, at 20:06, Marc Chantreux <mc@xxxxxxxxxx> wrote:
>
>> But I’m still confused (surprised) why OPs original pattern did what it did.
>
> I just read the explaination from Mikael and Bart: short and clear.
> Isn't it?
Yes. The key for me here is the y of x~y is a string pattern.
I looked at my zsh cheat sheet and saw two other patterns that I thought I would ask about if anyone would be so kind:
I’m assuming that pat of the expression ^pat is a glob pattern. And x^y: my guess is that both x and y are glob patterns.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author