From cd737560c394196a2fff99afe5acc8d5c4ccb93a Mon Sep 17 00:00:00 2001 From: Brendan Taylor Date: Tue, 12 Apr 2011 21:16:07 -0600 Subject: use 'echo' instead of 'print' in examples/data/scripts/*temp*.sh --- examples/data/scripts/insert_temp.sh | 3 +-- examples/data/scripts/load_url_from_temps.sh | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'examples') diff --git a/examples/data/scripts/insert_temp.sh b/examples/data/scripts/insert_temp.sh index a67b645..7ed8d22 100755 --- a/examples/data/scripts/insert_temp.sh +++ b/examples/data/scripts/insert_temp.sh @@ -1,8 +1,7 @@ #!/bin/sh . "$UZBL_UTIL_DIR/uzbl-dir.sh" -. "$UZBL_UTIL_DIR/uzbl-util.sh" >> "$UZBL_TEMPS_FILE" || exit 1 -print "$UZBL_URI $UZBL_TITLE\n" >> "$UZBL_TEMPS_FILE" +echo "$UZBL_URI $UZBL_TITLE" >> "$UZBL_TEMPS_FILE" diff --git a/examples/data/scripts/load_url_from_temps.sh b/examples/data/scripts/load_url_from_temps.sh index 9788b0f..b46687b 100755 --- a/examples/data/scripts/load_url_from_temps.sh +++ b/examples/data/scripts/load_url_from_temps.sh @@ -5,7 +5,6 @@ DMENU_OPTIONS="xmms vertical resize" . "$UZBL_UTIL_DIR/dmenu.sh" . "$UZBL_UTIL_DIR/uzbl-dir.sh" -. "$UZBL_UTIL_DIR/uzbl-util.sh" [ -r "$UZBL_TEMPS_FILE" ] || exit 1 @@ -19,5 +18,5 @@ fi sed -i -e "\<^$goto "$UZBL_FIFO" -#[ -n "$goto" ] && print "uri $goto\n" | socat - "unix-connect:$UZBL_SOCKET" +[ -n "$goto" ] && echo "uri $goto" > "$UZBL_FIFO" +#[ -n "$goto" ] && echo "uri $goto" | socat - "unix-connect:$UZBL_SOCKET" -- cgit v1.2.3