From 9efd96b4053aa5bddac5aee58b07efbd4ad905d2 Mon Sep 17 00:00:00 2001 From: Chris Down Date: Mon, 7 Nov 2016 08:45:31 +0000 Subject: [PATCH] blank check: Use [:space:], not [:blank:] This is semantically more correct. Previously, in the most common case, pastes with only `\n` would result in `bad array subscript`. Fixes #31. --- clipmenud | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/clipmenud b/clipmenud index 2752c84..0a9002c 100755 --- a/clipmenud +++ b/clipmenud @@ -84,7 +84,7 @@ while sleep "${CLIPMENUD_SLEEP:-0.5}"; do debug "Data after stripping: $data" - if [[ $data != *[^[:blank:]]* ]]; then + if [[ $data != *[^[:space:]]* ]]; then debug "Skipping as clipboard is only blank" continue fi