tests/shell/testcases/optionals/comments_handles_0
raw| 1 | #!/bin/bash |
| 2 | |
| 3 | # handles and comments mix well |
| 4 | |
| 5 | $NFT add table test |
| 6 | $NFT add chain test test |
| 7 | $NFT add rule test test tcp dport 22 counter accept comment test_comment |
| 8 | set -e |
| 9 | $NFT -a list table test | grep 'accept comment \"test_comment\" # handle '[[:digit:]]$ >/dev/null |
| 10 | $NFT list table test | grep 'accept comment \"test_comment\"' | grep -v '# handle '[[:digit:]]$ >/dev/null |