From 7d299bda9c0f8ad77305e2c96cc82736468aa219 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 3 May 2017 22:33:35 +0200 Subject: [PATCH] bin/spell: build wordlist with proper newlines --- bin/spell | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/spell b/bin/spell index 16aaef59..ad85582c 100755 --- a/bin/spell +++ b/bin/spell @@ -12,7 +12,7 @@ result=$(echo "$@" | aspell -a | tail -n-2) if [[ "$result" == '*' ]]; then echo "$@" else - words=$(echo "$result" | sed 's/[:,] /\n/g' | tail -n +2) + words=$(echo "$result" | sed $'s/[:,] /\\\n/g' | tail -n +2) if (( $(wc -l <<< "$words") > 1 )) && command -v 'fzf' >/dev/null; then fzf <<< "$words" else