[Bug 1135] When used as a script interpreter, nft fails if extra arguments are passed

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Tue Dec 1 20:50:38 CET 2020


https://bugzilla.netfilter.org/show_bug.cgi?id=1135

--- Comment #4 from kfm at plushkava.net ---
For those that aren't using GNU systems, here is a tiny sh script, which
effectively does the same thing that env -S would.

#!/bin/sh
set -f
set -- $*
exec "$@"

Let's assume that it is saved as /usr/local/bin/split-exec. The equivalent
shebang would then be as follows.

#!/usr/local/bin/split-exec nft -I /usr/local/etc/nftables -I /etc/nftables -f

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.netfilter.org/pipermail/netfilter-buglog/attachments/20201201/475214ec/attachment.html>


More information about the netfilter-buglog mailing list