summaryrefslogtreecommitdiffstats
path: root/tests/shell/testcases/optionals/comments_handles_0
blob: a01df1df50f410b91e5c8a8a69de1042a76a21f5 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

# handles and comments mix well

$NFT add table test
$NFT add chain test test
$NFT add rule test test tcp dport 22 counter accept comment test_comment
set -e
$NFT -a list table test | grep 'accept comment \"test_comment\" # handle '[[:digit:]]$ >/dev/null
$NFT list table test | grep 'accept comment \"test_comment\"' | grep -v '# handle '[[:digit:]]$ >/dev/null