aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/data/scripts/history.sh
diff options
context:
space:
mode:
authorGravatar Ben Boeckel <MathStuf@gmail.com>2011-03-10 19:54:44 -0500
committerGravatar Ben Boeckel <MathStuf@gmail.com>2011-03-10 21:10:41 -0500
commit06c29bbd5d1ad0542d8de4a6661bd8366d9c56d5 (patch)
tree33ed8ecbff72b73a99711f24e6fa6e785d7587cd /examples/data/scripts/history.sh
parentbfbd8eaf428b8cf04c88cc7acdcf9230c82120b4 (diff)
Quote variables which may contain spaces
Diffstat (limited to 'examples/data/scripts/history.sh')
-rwxr-xr-xexamples/data/scripts/history.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/data/scripts/history.sh b/examples/data/scripts/history.sh
index 3972e3a..bbef20a 100755
--- a/examples/data/scripts/history.sh
+++ b/examples/data/scripts/history.sh
@@ -4,4 +4,4 @@
[ -w "$UZBL_HISTORY_FILE" ] || [ ! -a "$UZBL_HISTORY_FILE" ] || exit 1
-echo $(date +'%Y-%m-%d %H:%M:%S')" $UZBL_URI $UZBL_TITLE" >> $UZBL_HISTORY_FILE
+echo "$( date +'%Y-%m-%d %H:%M:%S' ) $UZBL_URI $UZBL_TITLE" >> "$UZBL_HISTORY_FILE"