From 7f635de1e028f764a006f595a0dc5838b4b81664 Mon Sep 17 00:00:00 2001 From: Joe Moudrik Date: Mon, 19 Mar 2012 12:38:53 +0100 Subject: [PATCH] tools/pattern_byplayer.sh: Minor bugfix, enclose var in "". --- tools/pattern_byplayer.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/pattern_byplayer.sh b/tools/pattern_byplayer.sh index e7271b4..bf35d62 100755 --- a/tools/pattern_byplayer.sh +++ b/tools/pattern_byplayer.sh @@ -19,7 +19,7 @@ sgf_attr() { # Not a big problem, since usually the player name is just # [a-zA-Z0-9]* - sed -n 's/^.*'$1'\[\([^]]*\)\].*$/\1/p' $sgf + sed -n 's/^.*'$1'\[\([^]]*\)\].*$/\1/p' "$sgf" } black="$(sgf_attr PB)" -- 2.11.4.GIT