clipmenu

Simple clipboard management using dmenu
git clone https://git.sinitax.com/cdown/clipmenu
Log | Files | Refs | README | LICENSE | sfeed.txt

commit 9efd96b4053aa5bddac5aee58b07efbd4ad905d2
parent c5f101d996a6ef47a0ee1764bdc1ca8e16547724
Author: Chris Down <chris@chrisdown.name>
Date:   Mon,  7 Nov 2016 08:45:31 +0000

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.

Diffstat:
Mclipmenud | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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