]> The Tcpdump Group git mirrors - tcpdump/commit
man: Fix an example by quoting a filter expression
authorFrancois-Xavier Le Bail <[email protected]>
Sat, 21 Oct 2023 06:33:07 +0000 (08:33 +0200)
committerFrancois-Xavier Le Bail <[email protected]>
Sat, 21 Oct 2023 07:43:48 +0000 (09:43 +0200)
commitd35e4bf44447a68fb45caa8d048b4b2511be944e
tree3fb1a26b1cc9efb32f5ea08638cf6758d3f29318
parent807f202a3dfd44bde471a4e7773d94f10c935d4c
man: Fix an example by quoting a filter expression

It's to prevent the shell from (mis-)interpreting the square brackets.

e.g. if there is a file named tcp1 in the current directory,
with tcp[13] == 2, the executed command will be:
tcpdump -i xl0 tcp1 == 2
Result: tcpdump: can't parse filter expression: syntax error

(cherry picked from commit 5db1dbf206cadf0d063334fa849746f74e42c588)

[skip ci]
tcpdump.1.in