Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 Aug 2020 20:05:36 +0300
From:      moridin@mm.st
To:        "@lbutlr" <kremels@kreme.com>, FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: less "there is no -l option"
Message-ID:  <c9da8409-7d53-cbfe-16ac-24be7c5a51ba@mm.st>
In-Reply-To: <548D7ED2-9BEA-4B73-9F86-5597AB305B29@kreme.com>
References:  <548D7ED2-9BEA-4B73-9F86-5597AB305B29@kreme.com>

next in thread | previous in thread | raw e-mail | index | archive | help
@lbutlr wrote:
> When executing the less I get an error from less:
> 
> ce # less 20200814-093500.36786.2.trace
> There is no -l option ("less --help" for help)
> -  (press RETURN)
> 
> then the less command continues
> 
>   # which less
> /usr/bin/less
>   # less --version
> There is no -l option ("less --help" for help)
> less 530 (POSIX regular expressions)
> Copyright (C) 1984-2017  Mark Nudelman
> 
> less comes with NO WARRANTY, to the extent permitted by law.
> For information about the terms of redistribution,
> see the file named README in the less distribution.
> Homepage: http://www.greenwoodsoftware.com/less
> 
>   # echo "$LESS\n$PAGER\n$MANPAGER"
> less -esXFR

This is the source of the problem, LESS variable needs to contain only 
the options:

$ which less
/usr/bin/less
$ less
Missing filename ("less --help" for help)
$ LESS="less -esXFR" less
There is no -l option ("less --help" for help)
Missing filename ("less --help" for help)


> less -esXFR
> less -esXFR
> 
> This is new behavior in the last few days, and the less binary dates from nearly a year ago.
> 
> 
> 




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?c9da8409-7d53-cbfe-16ac-24be7c5a51ba>