Re: 'safe' printing to the terminal
[email protected] (Michiel Beijen) Wed, 13 May 2026 10:48:42 +0000
| Newsgroups | perl.perl5.porters |
|---|---|
| Message-ID | <J9ZF073a_TPDP7gddan-GCRcWR6EyoQzv_NQagIHzQm2DsEvb0cv5vH6v7wo-OELV8a_4fUoX7jEHOaGfHiCImVf7HyS9L8E_aqV0g-VFwM=@x14.nl> |
On Wednesday, May 13th, 2026 at 08:30, Aristoteles Pagaltzis via perl5-porters <[email protected]> wrote: > `man bash` documents %q as “causes `printf` to > output the corresponding argument in a format that can be reused as > shell input”, which in in Perl is called \Q (or quotemeta). Quotemeta (\Q) is in regexes and is not able to properly filter out terminal escape characters. It does not have anything to do with bash printf %q -- Michiel