zsh-users
 help / color / mirror / code / Atom feed
From: Perry Smith <pedz@easesoftware.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Questions from zshexpn(1) -- Globbing
Date: Mon, 18 Nov 2019 18:53:55 -0600	[thread overview]
Message-ID: <F1AE3C36-D2A2-4F76-9B02-E92B8AAE4FA9@easesoftware.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 902 bytes --]

Again, trying to read through and understand zshexpn…

https://www.mankier.com/1/zshexpn#Filename_Generation-Globbing_Flags <https://www.mankier.com/1/zshexpn#Filename_Generation-Globbing_Flags>

The subsection is Globbing Flags within Filename Generation with both the b and m flags is a curious phrase:

> Activate backreferences for parenthesised groups in the pattern; this does not work in filename generation.

Why does it say “this does not work in filename generation” ?  Using their example for the m flag:

>                      arr=(veldt jynx grimps waqf zho buck)
>                      print ${arr//(#m)[aeiou]/${(U)MATCH}}

I can change the “print” to “touch” and it touches the files and change it to “rm” and it removes the files.

My fear here is that I’m missing something rather significant such as what precisely is “filename generation”


[-- Attachment #1.2: Type: text/html, Size: 1683 bytes --]

[-- Attachment #2: smime.p7s --]
[-- Type: application/pkcs7-signature, Size: 2966 bytes --]

             reply	other threads:[~2019-11-19  0:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20191119005526eucas1p2f346934679a40e37d2424b3ab6df4cbc@eucas1p2.samsung.com>
2019-11-19  0:53 ` Perry Smith [this message]
2019-11-19  9:35   ` Peter Stephenson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=F1AE3C36-D2A2-4F76-9B02-E92B8AAE4FA9@easesoftware.com \
    --to=pedz@easesoftware.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).