diff options
author | 2011-03-10 22:23:36 -0500 | |
---|---|---|
committer | 2011-03-10 22:32:50 -0500 | |
commit | dcf3ffda8005c73c15f5142c61ee492f14af590a (patch) | |
tree | b73cb35a08af35c81f0bf3e605a25bf378016f85 /examples/data/scripts/load_url_from_history.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/load_url_from_history.sh')
-rwxr-xr-x | examples/data/scripts/load_url_from_history.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/data/scripts/load_url_from_history.sh b/examples/data/scripts/load_url_from_history.sh index 3537b35..0a6769a 100755 --- a/examples/data/scripts/load_url_from_history.sh +++ b/examples/data/scripts/load_url_from_history.sh @@ -5,6 +5,7 @@ DMENU_OPTIONS="xmms vertical resize" . "$UZBL_UTIL_DIR/dmenu.sh" . "$UZBL_UTIL_DIR/uzbl-dir.sh" +. "$UZBL_UTIL_DIR/uzbl-util.sh" [ -r "$UZBL_HISTORY_FILE" ] || exit 1 @@ -18,5 +19,5 @@ else goto="$( tac "$UZBL_HISTORY_FILE" | $DMENU | cut -d ' ' -f -3 | awk '{ print $NF }' )" fi -[ -n "$goto" ] && printf "uri $goto\n" > "$UZBL_FIFO" -#[ -n "$goto" ] && printf "uri $goto\n" | socat - "unix-connect:$UZBL_SOCKET" +[ -n "$goto" ] && print "uri $goto\n" > "$UZBL_FIFO" +#[ -n "$goto" ] && print "uri $goto\n" | socat - "unix-connect:$UZBL_SOCKET" |