X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Ffiles%2Flesser.sh;h=346679b4fec741fd48ede5e4131daa558db31685;hb=4f2922289d9e6f33ec81a09643c32ece76b57231;hp=afcc562563198fe034eaa18bf2fba62411eed583;hpb=9dd72bf7c3c75823ba325948fb7b1089ab18b8ec;p=feisty_meow.git diff --git a/scripts/files/lesser.sh b/scripts/files/lesser.sh index afcc5625..346679b4 100644 --- a/scripts/files/lesser.sh +++ b/scripts/files/lesser.sh @@ -15,8 +15,6 @@ function lesser() if [ "$code_view_flag" == "-c" ]; then # saw the 'code' flag, which means show the file with source highlighting. shift -#echo saw the code flag - else # drop the value and emptiness will mean don't show code. unset code_view_flag @@ -27,14 +25,14 @@ function lesser() export LESSOPEN="| source-highlight -f esc -o STDOUT -i %s" fi -#hmmm, will we need to iterate on the input array to get this right? # run the source highlighter first if needed. /bin/less -r "${@}" - -#hmmm: do we need to protect above from space hosings? -#hmmm: done, maybe. if this still works for multiple parms... - } +############## + +# now that we have our function, just use it on all the input parameters. +# this is done to avoid adding yet another function to the core. +lesser "${@}"