aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples
diff options
context:
space:
mode:
authorGravatar Michal 'vorner' Vaner <vorner@ucw.cz>2012-04-14 19:46:56 +0200
committerGravatar Michal 'vorner' Vaner <vorner@ucw.cz>2012-04-14 21:26:34 +0200
commite5ee033154afaea4db5856e76f2a9ba73fd7526b (patch)
tree04ff39b2ba667c96c807fb99cd5bdfce2c92e6dd /examples
parent29d4d3b7952a687b4338ca69a6789739728d8df8 (diff)
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.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/data/scripts/follow.sh4
1 files changed, 3 insertions, 1 deletions
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