From: Michael Tremer Date: Tue, 9 Apr 2013 09:55:25 +0000 (+0200) Subject: list: Allow to append arguments that start with "-" X-Git-Tag: 006~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=50a9620c2d5cee1360759e5e5b95dd8c5e57e5a5;p=network.git list: Allow to append arguments that start with "-" --- diff --git a/functions.list b/functions.list index c33d4db6..3110357f 100644 --- a/functions.list +++ b/functions.list @@ -29,9 +29,9 @@ function list_append() { assert isset list if [ -n "${!list}" ]; then - printf -v ${list} "${!list} $@" + printf -v ${list} -- "${!list} $@" else - printf -v ${list} "$@" + printf -v ${list} -- "$@" fi }