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

how to use character range [] in substitution pattern :gs



I'm trying to use the the [] character range to substitute for embedded parenthesis as in the following:

% echo ${x:gs/[()]/_/}

But This isn't working for some reason. It's not complaining about syntax, so I'm pretty sure that I'm using the character range [] incorrectly somehow.

Any help appreciated.



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