From e5ee033154afaea4db5856e76f2a9ba73fd7526b Mon Sep 17 00:00:00 2001 From: Michal 'vorner' Vaner Date: Sat, 14 Apr 2012 19:46:56 +0200 Subject: Fix follow in new window with url containing % The script printed the URL through printf, which interpreted the % as control character. This led to the script not working and printing errors like "%C is not valid formatting character". Using echo should be safe. --- examples/data/scripts/follow.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/data/scripts/follow.sh b/examples/data/scripts/follow.sh index de126eb..ca6b7a0 100755 --- a/examples/data/scripts/follow.sh +++ b/examples/data/scripts/follow.sh @@ -14,7 +14,9 @@ case "$result" in printf 'set mode=\nevent KEYCMD_CLEAR\n' > "$UZBL_FIFO" ;; XXXNEW_WINDOWXXX*) - printf "set mode=\nevent KEYCMD_CLEAR\nevent NEW_WINDOW $@\n" > "$UZBL_FIFO" + echo "set mode= +event KEYCMD_CLEAR +event NEW_WINDOW $@" > "$UZBL_FIFO" ;; XXXRETURNED_URIXXX*) uriaction=$1 -- cgit v1.2.3