commit ec86549ee7caae811f4fb14d9e9cc4a7db20d0f1
parent 71f4394b4251972c4daecf24888038a4f423e83f
Author: Jordan Galby <gravemind2a@gmail.com>
Date: Mon, 12 Nov 2018 13:22:28 +0000
Fix clipdel escaped only first '#' (#95)
Now escapes all occurrences of '#' in clipdel pattern.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/clipdel b/clipdel
@@ -45,7 +45,7 @@ fi
# https://github.com/koalaman/shellcheck/issues/1141
# shellcheck disable=SC2124
raw_pattern=$1
-esc_pattern=${raw_pattern/\#/'\#'}
+esc_pattern=${raw_pattern//\#/'\#'}
if ! [[ $raw_pattern ]]; then
printf '%s\n' 'No pattern provided, see --help' >&2