<html>
    <head>
      <base href="https://bugzilla.netfilter.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Combining --terse with --json has no effect"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1388">1388</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Combining --terse with --json has no effect
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>nftables
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P5
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>nft
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>pablo@netfilter.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kfm@plushkava.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Given a loaded ruleset that contains at least one populated set, the following
bash program demonstrates that --terse has no effect when combined with the
--json option.

for opts in -s -t '-s -t'; do
    printf 'opts = %s: ' "$opts"
    if cmp -s <(nft -j list ruleset) <(nft -j $opts list ruleset); then
        echo "same"
    else
        echo "different"
    fi
done

Sample output:

opts = -s: different
opts = -t: same
opts = -s -t: different

My expectation is that the --terse option ensures that set elements are not
rendered, just as it does for the standard output format.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>