From 3f99cfba1b6ef1c5665488b651a3d6409730fa98 Mon Sep 17 00:00:00 2001 From: Aaron Lindsay Date: Thu, 5 Sep 2013 14:46:29 -0400 Subject: contrib: Unify quoting in error messages This fixes error messages to display the contents of variables rather than the variable name by replacing backticks with single quotes (m4 eats backticks). It also removes $"" localization from error messages to eliminate security holes. For instance, `rankmirrors nonexistent_file' will now display: 'nonexistent_file' does not exist. rather than: $1 does not exist. Signed-off-by: Aaron Lindsay Signed-off-by: Allan McRae --- contrib/bacman.sh.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/bacman.sh.in') diff --git a/contrib/bacman.sh.in b/contrib/bacman.sh.in index 5435e405..33e3920a 100644 --- a/contrib/bacman.sh.in +++ b/contrib/bacman.sh.in @@ -124,7 +124,7 @@ fi if [[ ! -d $pkg_dir ]]; then error "package %s is found in pacman database," "${pkg_name}" - plain " but \`%s' is not a directory" "${pkg_dir}" + plain " but '%s' is not a directory" "${pkg_dir}" exit 1 fi -- cgit v1.2.3-24-g4f1b