From: Grisha Levit <grishalevit@gmail.com>
To: bug-gnulib@gnu.org
Cc: Grisha Levit <grishalevit@gmail.com>
Subject: quotearg: shell escape issue with single quote
Date: Sat, 30 Mar 2024 21:16:07 -0400 [thread overview]
Message-ID: <20240331011611.21428-1-grishalevit@gmail.com> (raw)
If a string starts with a sequence that requires $'' quoting followed
by a \' and then another charactrer requiring $'' quoting, the '$' at
the start of the quoted string ends up missing:
$ env printf '%q\n' $'\1\'\2'
'\001'\'''$'\002'
next reply other threads:[~2024-03-31 13:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-31 1:16 Grisha Levit [this message]
2024-03-31 20:23 ` quotearg: shell escape issue with single quote Pádraig Brady
2024-03-31 21:02 ` Bruno Haible
2024-04-03 20:56 ` Pádraig Brady
2024-04-03 21:33 ` Bruno Haible
2024-04-03 22:21 ` Pádraig Brady
2024-04-03 22:30 ` declaration after label Collin Funk
2024-04-03 22:45 ` Paul Eggert
2024-04-03 22:50 ` Bruno Haible
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
List information: https://lists.gnu.org/mailman/listinfo/bug-gnulib
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240331011611.21428-1-grishalevit@gmail.com \
--to=grishalevit@gmail.com \
--cc=bug-gnulib@gnu.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.
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 read-only IMAP folder(s) and NNTP newsgroup(s).