Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
How do I (*|*/*) ?
- X-seq: zsh-users 30536
- From: Perry Smith <pedz@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: How do I (*|*/*) ?
- Date: Sun, 12 Apr 2026 10:12:30 -0500
- Arc-authentication-results: i=1; rspamd-6c65dd77f-tvbzj; 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=1776006763; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:dkim-signature; bh=lz9oV/2AVa8eJ6M4f2+2SMysOWnwhoNaFSnoTiwJQKc=; b=3j06pyDFeGOqNfa0KwxPavYZe/moDkuRAQjOpVn5hrfHK68+UGHV/F0vi/bhFqjnZmbPNK FQEBCMF1sO7sC3BA7LXP5LAuKVMLQKUucd8uAgoWTi88ay87CmU2X7r4Bl/W3Sb850pzaG ETQYYf9PBGTtBc69OOBTF0Aa51VpnIBoVw+U22EHGhVpW8Briias67SfsSpWh71gHlkKOF ONq5KimR/5Lo1wyfK628GpwRjPjRh2y6lx0iSlYMWePvM6XS3cPgNocVQuVtJELQBKQp9D 8fRI1oiPaR8A3NIS4LuzMzRfwVCpPXS3zABLYuKkWy0tPbGCEhTTSmJ/lekIsA==
- Arc-seal: i=1; a=rsa-sha256; d=mailchannels.net; s=arc-2022; cv=none; t=1776006763; b=9g8HaBR+sNtDgUaU1FNWU5bIl3me0IheNiGoWsYh3lRT3jjdyfLOUHBPqTpblg8aebxIW/ Kj3RDh5O7R8NYGpqN09hEEzPY5rik3wL9+c91AbJ2exTDgWVjh+32lnk8g7kzKeDWuU9Yf FML2dhk+s1Wj9gLljPWstqzHBjFsbHDUyEMxDgy0kbfUytE1uWI1cbs0l4Y1pnXqUAP4r8 /HfiW88s03bVBVlQrKeZBuhZzTtHEBC/Oqpfv9p2n1dEuywfiIxC3tFC+NcfFjmKszSdGv eC78sHHzvLqEor6vnPGKzI2kD1EeGVQez798CxVC/EW1UXxPYk0tqfBE0w49Ag==
- Archived-at: <https://zsh.org/users/30536>
- List-id: <zsh-users.zsh.org>
AI told me that (a|b) could be done but when I tried print -l (*|*/*) I got bad pattern. I thought the AI engine was wrong. But I read the man pages and it has a|b and (…) so I played and I found that print -l (a|b)* works. And print -l (*|b).DS_Store works. It appears as if a or b can not contain a slash? e.g. print -l (*|Movies/TV)/.DS_Store is a bad pattern.
I assume it is because "In filename generation, the character `/' must be matched explicitly;” but I actually don’t see the connection.
I don’t want {a,b} because I’m trying to get a single list that can be sorted. My original quest is something like: print -l (*|*/*|*/*/*)/.DS_Store(OL[1,5])
Is that possible?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author