diff options
author | Florian Westphal <fw@strlen.de> | 2018-06-08 14:41:08 +0200 |
---|---|---|
committer | Florian Westphal <fw@strlen.de> | 2018-06-08 14:41:08 +0200 |
commit | b878cb7d83855f4420791561b63aa4b96d73663a (patch) | |
tree | 645bab65243ebc9a259181c9d8495865e5882ed9 /tests/shell/testcases/transactions/0041nat_restore_0 | |
parent | ba6711f37e4c776e812e53c9a0d385a80ce2f15a (diff) |
tests: shell: add quotes when using <<<-style here document
bash 4.3.30 removes newlines in RULESET when "" are omitted, which
then causes nft -f to complain about invalid syntax.
As a result, all test cases that use this here-doc style fail.
Signed-off-by: Florian Westphal <fw@strlen.de>
Diffstat (limited to 'tests/shell/testcases/transactions/0041nat_restore_0')
-rwxr-xr-x | tests/shell/testcases/transactions/0041nat_restore_0 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/shell/testcases/transactions/0041nat_restore_0 b/tests/shell/testcases/transactions/0041nat_restore_0 index 62971852..9e1d6c96 100755 --- a/tests/shell/testcases/transactions/0041nat_restore_0 +++ b/tests/shell/testcases/transactions/0041nat_restore_0 @@ -7,11 +7,11 @@ add table ip t add chain ip t c { type nat hook postrouting priority 0; } " -$NFT -f - <<< $RULESET +$NFT -f - <<< "$RULESET" RULESET=" flush ruleset $RULESET " -$NFT -f - <<< $RULESET +$NFT -f - <<< "$RULESET" |