diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2011-03-10 22:23:36 -0500 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2011-03-10 22:32:50 -0500 |
commit | dcf3ffda8005c73c15f5142c61ee492f14af590a (patch) | |
tree | b73cb35a08af35c81f0bf3e605a25bf378016f85 /examples/data/scripts/go_input.sh | |
parent | f43741a91218936749afb3242a6e473f76387684 (diff) |
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.
Diffstat (limited to 'examples/data/scripts/go_input.sh')
-rwxr-xr-x | examples/data/scripts/go_input.sh | 6 |
1 files changed, 4 insertions, 2 deletions
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 |