From dcf3ffda8005c73c15f5142c61ee492f14af590a Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Thu, 10 Mar 2011 22:23:36 -0500 Subject: Use print rather than printf printf chokes on $(printf "%DD") which may very well come up in an encoded URL. Avoid that with the print alias. --- examples/data/scripts/go_input.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'examples/data/scripts/go_input.sh') diff --git a/examples/data/scripts/go_input.sh b/examples/data/scripts/go_input.sh index 6574a83..ad236d1 100755 --- a/examples/data/scripts/go_input.sh +++ b/examples/data/scripts/go_input.sh @@ -1,7 +1,9 @@ #!/bin/sh -case "$( printf "script @scripts_dir/go_input.js\n" | socat - "unix-connect:$UZBL_SOCKET" )" in +. "$UZBL_UTIL_DIR/uzbl-util.sh" + +case "$( print "script @scripts_dir/go_input.js\n" | socat - "unix-connect:$UZBL_SOCKET" )" in *XXXEMIT_FORM_ACTIVEXXX*) - printf "event FORM_ACTIVE\n" > "$UZBL_FIFO" + print "event FORM_ACTIVE\n" > "$UZBL_FIFO" ;; esac -- cgit v1.2.3