From 50a9620c2d5cee1360759e5e5b95dd8c5e57e5a5 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Tue, 9 Apr 2013 11:55:25 +0200 Subject: [PATCH] list: Allow to append arguments that start with "-" --- functions.list | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 } -- 2.47.3