diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2011-03-10 19:54:44 -0500 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2011-03-10 21:10:41 -0500 |
commit | 06c29bbd5d1ad0542d8de4a6661bd8366d9c56d5 (patch) | |
tree | 33ed8ecbff72b73a99711f24e6fa6e785d7587cd /examples/data/scripts/load_url_from_bookmarks.sh | |
parent | bfbd8eaf428b8cf04c88cc7acdcf9230c82120b4 (diff) |
Quote variables which may contain spaces
Diffstat (limited to 'examples/data/scripts/load_url_from_bookmarks.sh')
-rwxr-xr-x | examples/data/scripts/load_url_from_bookmarks.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/data/scripts/load_url_from_bookmarks.sh b/examples/data/scripts/load_url_from_bookmarks.sh index 704e106..d47d189 100755 --- a/examples/data/scripts/load_url_from_bookmarks.sh +++ b/examples/data/scripts/load_url_from_bookmarks.sh @@ -12,11 +12,11 @@ DMENU_OPTIONS="xmms vertical resize" if [ -z "$DMENU_HAS_VERTICAL" ]; then # because they are all after each other, just show the url, not their tags. - goto=$(awk '{print $1}' "$UZBL_BOOKMARKS_FILE" | $DMENU) + goto="$(awk '{print $1}' "$UZBL_BOOKMARKS_FILE" | $DMENU)" else # show tags as well - goto=$($DMENU < "$UZBL_BOOKMARKS_FILE" | awk '{print $1}') + goto="$($DMENU < "$UZBL_BOOKMARKS_FILE" | awk '{print $1}')" fi [ -n "$goto" ] && echo "uri $goto" > "$UZBL_FIFO" -#[ -n "$goto" ] && echo "uri $goto" | socat - unix-connect:"$UZBL_SOCKET" +#[ -n "$goto" ] && echo "uri $goto" | socat - "unix-connect:$UZBL_SOCKET" |