Re: lessecho missing?



Jeff Hyman wrote:
Steve M. Fabac, Jr. typed (on Wed, Mar 28, 2007 at 04:54:55PM +0000):
| Trying to "save" the less buffer using the "S"
| command results in: /bin/sh: lessecho: not found
| | Reading the man page on less:
| LESSECHO4
| Name of the lessecho program. The default is lessecho. The
| lessecho program is needed to expand metacharacters, such
| as * and ?, in filenames.
| | Setting LESSECHO=/bin/ksh does not work:
| Results in "Input is not a pipe (press RETURN)"
| | | Creating /bin/lessecho as:
| | $ cat /bin/lessecho
| cat - | | Does not work: Results in "Input is not a pipe (press RETURN)"
| | Results are the same on SCO 5.0.7 and SCO 6.0
| | | What am I missing?

Any environmental variables needing to be exported, that are not?
# set | grep -y less
LESS=-ceij4z-4
LESSOPEN='|lesspipe %s'

- Jeff H

On my 5.0.7 system:

$ set | grep -y less
LESS='--chop-long-lines --shift 8'

What is the function of LESSOPEN above?
.



Relevant Pages