about summary refs log tree commit diff
path: root/mless
diff options
context:
space:
mode:
authorcodesoap <codesoap@mailbox.org>2019-02-03 19:00:20 +0100
committerLeah Neukirchen <chneukirchen@gmail.com>2019-02-03 19:57:14 +0100
commit1dd341508579051453f7663bdacd43a321b33075 (patch)
tree7ea3a54cc5250f8179b2b99350029a98c0b1e8ab /mless
parentd68287aae5d9757a03407005cdce312ce66b25d5 (diff)
downloadmblaze-1dd341508579051453f7663bdacd43a321b33075.tar.gz
mblaze-1dd341508579051453f7663bdacd43a321b33075.tar.xz
mblaze-1dd341508579051453f7663bdacd43a321b33075.zip
mless: Quote variables whenever possible
Diffstat (limited to 'mless')
-rwxr-xr-xmless16
1 files changed, 8 insertions, 8 deletions
diff --git a/mless b/mless
index 8692722..390ebcf 100755
--- a/mless
+++ b/mless
@@ -37,9 +37,9 @@ if [ "$1" = --filter ]; then
 			mshow "$2"
 		fi | mcolor
 	else
-		mseq -r $2
+		mseq -r "$2"
 		echo
-		cat "$(mseq -r $2)"
+		cat "$(mseq -r "$2")"
 	fi
 	exit $?
 fi
@@ -64,12 +64,12 @@ nl="
 export MLESS_RAW=0
 export MLESS_HTML=0
 while :; do
-	if [ -f $MBLAZE/mless ]; then
-		export LESSKEY=$MBLAZE/mless
-	elif [ -f $HOME/.mblaze/mless ]; then
-		export LESSKEY=$HOME/.mblaze/mless
-	elif [ -f $HOME/.mless ]; then
-		export LESSKEY=$HOME/.mless
+	if [ -f "$MBLAZE/mless" ]; then
+		export LESSKEY="$MBLAZE/mless"
+	elif [ -f "$HOME/.mblaze/mless" ]; then
+		export LESSKEY="$HOME/.mblaze/mless"
+	elif [ -f "$HOME/.mless" ]; then
+		export LESSKEY="$HOME/.mless"
 	fi
 	LESSOPEN="|$0 --filter %s" \
 		less -Ps"mless %f?m (message %i of %m).." -R \