netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Kerin Millar <kfm@plushkava.net>
To: alasdairmuckart@catalyst.net.nz
Cc: netfilter@vger.kernel.org
Subject: Re: Typo on 'Sets' wiki page
Date: Mon, 9 Oct 2023 08:31:15 +0100	[thread overview]
Message-ID: <20231009083115.5e56feda6573524e09412ca9@plushkava.net> (raw)
In-Reply-To: <87edi4s9s6.fsf@catalyst.net.nz>

On Mon, 09 Oct 2023 17:23:03 +1300
Alasdair Muckart <alasdairmuckart@catalyst.net.nz> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
> 
> The wiki page at https://wiki.nftables.org/wiki-nftables/index.php/Sets seems
> to have an error.
> 
> Under the 'nftables.conf syntax' heading it says
> "When working with nftables.conf, you can define sets in a number of ways. You
> can then reference those sets later on using $VARIABLE_NAME notation."
> 
> Shouldn't that be an @, not a $?

It shouldn't be because the examples under that particular heading demonstrate how variables can be used to express the definition of an anonymous set. They are effective at the point that they are incorporated by a rule. All variables require the use of the $ sigil to be referenced, which is somewhat akin to parameter expansion in the shell. The @ sigil is used for matching sets that are formally defined and named by the use of the set keyword.

-- 
Kerin Millar

      reply	other threads:[~2023-10-09  7:31 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-10-09  4:23 Typo on 'Sets' wiki page Alasdair Muckart
2023-10-09  7:31 ` Kerin Millar [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=20231009083115.5e56feda6573524e09412ca9@plushkava.net \
    --to=kfm@plushkava.net \
    --cc=alasdairmuckart@catalyst.net.nz \
    --cc=netfilter@vger.kernel.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).