Skip to content

Commit

Permalink
mless: Quote variables whenever possible
Browse files Browse the repository at this point in the history
  • Loading branch information
codesoap authored and leahneukirchen committed Feb 3, 2019
1 parent d68287a commit 1dd3415
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions mless
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 \
Expand Down

0 comments on commit 1dd3415

Please sign in to comment.