mless: Quote variables whenever possible

pull/156/head
codesoap 5 years ago committed by Leah Neukirchen
parent d68287aae5
commit 1dd3415085

16
mless

@ -37,9 +37,9 @@ if [ "$1" = --filter ]; then
mshow "$2" mshow "$2"
fi | mcolor fi | mcolor
else else
mseq -r $2 mseq -r "$2"
echo echo
cat "$(mseq -r $2)" cat "$(mseq -r "$2")"
fi fi
exit $? exit $?
fi fi
@ -64,12 +64,12 @@ nl="
export MLESS_RAW=0 export MLESS_RAW=0
export MLESS_HTML=0 export MLESS_HTML=0
while :; do while :; do
if [ -f $MBLAZE/mless ]; then if [ -f "$MBLAZE/mless" ]; then
export LESSKEY=$MBLAZE/mless export LESSKEY="$MBLAZE/mless"
elif [ -f $HOME/.mblaze/mless ]; then elif [ -f "$HOME/.mblaze/mless" ]; then
export LESSKEY=$HOME/.mblaze/mless export LESSKEY="$HOME/.mblaze/mless"
elif [ -f $HOME/.mless ]; then elif [ -f "$HOME/.mless" ]; then
export LESSKEY=$HOME/.mless export LESSKEY="$HOME/.mless"
fi fi
LESSOPEN="|$0 --filter %s" \ LESSOPEN="|$0 --filter %s" \
less -Ps"mless %f?m (message %i of %m).." -R \ less -Ps"mless %f?m (message %i of %m).." -R \

Loading…
Cancel
Save