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/follow.sh | |
parent | bfbd8eaf428b8cf04c88cc7acdcf9230c82120b4 (diff) |
Quote variables which may contain spaces
Diffstat (limited to 'examples/data/scripts/follow.sh')
-rwxr-xr-x | examples/data/scripts/follow.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/data/scripts/follow.sh b/examples/data/scripts/follow.sh index d1560bf..3d0e992 100755 --- a/examples/data/scripts/follow.sh +++ b/examples/data/scripts/follow.sh @@ -6,11 +6,11 @@ # if socat is installed then we can change Uzbl's input mode once a link is # selected; otherwise we just select a link. if ! which socat >/dev/null 2>&1; then - echo 'script @scripts_dir/follow.js "@{follow_hint_keys} '$1'"' > "$UZBL_FIFO" + echo "script @scripts_dir/follow.js \"@{follow_hint_keys} $1\"" > "$UZBL_FIFO" exit fi -result=$(echo 'script @scripts_dir/follow.js "@{follow_hint_keys} '$1'"' | socat - unix-connect:"$UZBL_SOCKET") +result="$(echo "script @scripts_dir/follow.js \"@{follow_hint_keys} $1\"" | socat - "unix-connect:$UZBL_SOCKET")" case $result in *XXXEMIT_FORM_ACTIVEXXX*) # a form element was selected |