aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/data/scripts/go_input.sh
diff options
context:
space:
mode:
authorGravatar Brendan Taylor <whateley@gmail.com>2011-03-13 21:49:27 -0600
committerGravatar Brendan Taylor <whateley@gmail.com>2011-03-13 21:49:27 -0600
commit32f6f8360684c0b583e613cf5727f0c102438bd2 (patch)
treef36a5441ca4c075687649740a0143bddee189be1 /examples/data/scripts/go_input.sh
parent5ec505fdb007d22bcfb5631e88e67038b06d778a (diff)
sh scripts: replace print with echo/printf
we can safely use echo in many of the situations where 'print' is being used, and we can use printf directly in other places.
Diffstat (limited to 'examples/data/scripts/go_input.sh')
-rwxr-xr-xexamples/data/scripts/go_input.sh6
1 files changed, 2 insertions, 4 deletions
diff --git a/examples/data/scripts/go_input.sh b/examples/data/scripts/go_input.sh
index ad236d1..9797788 100755
--- a/examples/data/scripts/go_input.sh
+++ b/examples/data/scripts/go_input.sh
@@ -1,9 +1,7 @@
#!/bin/sh
-. "$UZBL_UTIL_DIR/uzbl-util.sh"
-
-case "$( print "script @scripts_dir/go_input.js\n" | socat - "unix-connect:$UZBL_SOCKET" )" in
+case "$( echo "script @scripts_dir/go_input.js" | socat - "unix-connect:$UZBL_SOCKET" )" in
*XXXEMIT_FORM_ACTIVEXXX*)
- print "event FORM_ACTIVE\n" > "$UZBL_FIFO"
+ echo "event FORM_ACTIVE" > "$UZBL_FIFO"
;;
esac