zsh-users
 help / color / mirror / code / Atom feed
* Is ":G" of ${name:s/l/r/:G} actually supported?
@ 2024-02-12 14:19 Joachim Ansorg
  2024-02-12 17:02 ` Mark J. Reed
  0 siblings, 1 reply; 5+ messages in thread
From: Joachim Ansorg @ 2024-02-12 14:19 UTC (permalink / raw)
  To: Zsh Users

Hi,
I was reading about modifiers on page 
https://zsh.sourceforge.io/Doc/Release/Expansion.html#Modifiers, which says:

>   The forms ‘gs/l/r’ and ‘s/l/r/:G’ perform global substitution, i.e. substitute every occurrence of r for l. Note that the g or :G must appear in exactly the position shown.

But zsh 5.9 doesn't seem to support this:
  > value="/dir/subdir/file.csv"
  > echo ${value:s/dir/_/:G}
  zsh: unrecognized modifier `G'

Is ":G" actually supported or is the documentation outdated here?
I might be overlooking something very simple, though.

Thank you!
Joachim Ansorg
-- 
BashSupport Pro
https://www.bashsupport.com/


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2024-02-13  2:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-12 14:19 Is ":G" of ${name:s/l/r/:G} actually supported? Joachim Ansorg
2024-02-12 17:02 ` Mark J. Reed
2024-02-12 17:11   ` Mark J. Reed
2024-02-12 21:50     ` Lawrence Velázquez
2024-02-13  2:23       ` Mark J. Reed

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).