From 32a4061abdd5f30e4a25c982fb52b09c08b39fb5 Mon Sep 17 00:00:00 2001 From: Paweł Zuzelski Date: Sat, 27 Mar 2010 01:14:34 +0100 Subject: quote ${editor} and ${VISUAL} These variables must be quoted. Otherwise script fails for VISUAL="xterm -name xvim -e vim" --- examples/data/scripts/formfiller.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/data/scripts/formfiller.sh') diff --git a/examples/data/scripts/formfiller.sh b/examples/data/scripts/formfiller.sh index 20d1d52..6f6dc34 100755 --- a/examples/data/scripts/formfiller.sh +++ b/examples/data/scripts/formfiller.sh @@ -37,9 +37,9 @@ keydir=${XDG_DATA_HOME:-$HOME/.local/share}/uzbl/dforms [ -d "`dirname $keydir`" ] || exit 1 [ -d "$keydir" ] || mkdir "$keydir" -editor=${VISUAL} -if [ -z ${editor} ]; then - if [ -z ${EDITOR} ]; then +editor="${VISUAL}" +if [ -z "${editor}" ]; then + if [ -z "${EDITOR}" ]; then editor='xterm -e vim' else editor="xterm -e ${EDITOR}" -- cgit v1.2.3