Coccinelle archive mirror
 help / color / mirror / Atom feed
From: Markus Elfring <Markus.Elfring@web.de>
To: Thierry Martinez <Thierry.Martinez@inria.fr>, cocci@inria.fr
Cc: Jan Tojnar <jtojnar@gmail.com>
Subject: Re: [cocci] Checking quotation variants
Date: Sat, 29 Oct 2022 09:15:17 +0200	[thread overview]
Message-ID: <98a053ec-42f2-17ba-8258-018f1041b4ee@web.de> (raw)
In-Reply-To: <ow4zgdj3t7l.fsf@inria.fr>

>> Apparently, three braces are sufficient to make it work but why that is
>> the case eludes me. m4 language is simply beyond my comprehension.
> Oops, you are correct: [[..]] is the proper way for quoting strings if we
> want to preserve inner square brackets
> (cf. https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Quotation-and-Nested-Macros.html).

Would you occasionally like to take the usage of quadrigraphs into account
(according to the application of M4 quotation)?
https://www.gnu.org/software/autoconf/manual/autoconf-2.71/html_node/Quadrigraphs.html


A parameter for the command “echo” is enclosed by double quotes so far.
Variable expansion is not applied in the passed string.
Can it be nicer then to enclose this argument by single quotes?

Regards,
Markus

      parent reply	other threads:[~2022-10-29  7:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-22  9:22 [cocci] No longer possible to build with system dependencies? Jan Tojnar
2022-10-22 10:26 ` Julia Lawall
2022-10-25 14:54 ` Julia Lawall
2022-10-25 20:35   ` Jan Tojnar
2022-10-25 20:44     ` Julia Lawall
2022-10-26  6:18     ` Markus Elfring
2022-10-26  8:05     ` Thierry Martinez
2022-10-26 11:00       ` Markus Elfring
2022-10-28 18:12       ` Markus Elfring
2022-10-29  7:15       ` Markus Elfring [this message]

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=98a053ec-42f2-17ba-8258-018f1041b4ee@web.de \
    --to=markus.elfring@web.de \
    --cc=Thierry.Martinez@inria.fr \
    --cc=cocci@inria.fr \
    --cc=jtojnar@gmail.com \
    /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).