From 0b9849deee6e9bb97f526ac6636f432882bd5d0e Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sun, 9 Oct 2016 15:20:03 -0400 Subject: [PATCH] cleaned up a bit and readied for general use --- scripts/files/lesser.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/files/lesser.sh b/scripts/files/lesser.sh index afcc5625..7d85ca57 100644 --- a/scripts/files/lesser.sh +++ b/scripts/files/lesser.sh @@ -27,14 +27,19 @@ 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, will we need to iterate on the input array to get this right? + #hmmm: do we need to protect above from space hosings? -#hmmm: done, maybe. if this still works for multiple parms... +# 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 "${@}" + -- 2.34.1