From 9b0cbd5d9253bbdad7a211b68149a09229a4920b Mon Sep 17 00:00:00 2001 From: Daniel Hahler Date: Wed, 11 Mar 2015 22:28:46 +0100 Subject: [PATCH] sh: fix "remove surrounding non-word characters" '\w.*\.*' matches 'foo-bar', although only 'foo' and 'bar' should get matched there. --- sh/tmuxcomplete | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sh/tmuxcomplete b/sh/tmuxcomplete index ed62ba2..b9195ca 100644 --- a/sh/tmuxcomplete +++ b/sh/tmuxcomplete @@ -104,7 +104,7 @@ splitwords() { # split on spaces tr -s '[:space:]' '\n' | # remove surrounding non-word characters - grep -o "\\w.*\\w" + grep -o "\w*" } # list all panes