From 9363e1fa91b23297f13d51139203baf5a0090fc0 Mon Sep 17 00:00:00 2001 From: rysiek Date: Fri, 3 Nov 2017 10:38:46 -0200 Subject: \t is a GNU extension in sed regexes; fixed / use --color only when ls supports it --- lib/keyringer/actions/recipients | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/keyringer/actions/recipients') diff --git a/lib/keyringer/actions/recipients b/lib/keyringer/actions/recipients index 3c18516..889f73e 100755 --- a/lib/keyringer/actions/recipients +++ b/lib/keyringer/actions/recipients @@ -38,7 +38,9 @@ elif [ "$COMMAND" == "edit" ]; then keyringer_exec git "$BASEDIR" add "$RECIPIENTS_FILE_BASE" else echo "Please specify one recipient to edit among the available:" - ls $RECIPIENTS | sed -e 's/^/\t/' + # \t is a GNU extension + # https://stackoverflow.com/questions/8400602/sed-replace-literal-tab + ls $RECIPIENTS | sed -e "`printf 's/^/\t/'`" exit 1 fi else -- cgit v1.2.3