On Wed, Oct 16, 2024 at 09:41:41AM -0400, Greg Wooledge wrote:
> On Wed, Oct 16, 2024 at 15:34:51 +0300, Anssi Saari wrote:
> > $ ls|more -e
> > more: unknown option -e
> > Try 'more --help' for more information.
> > 
> > I included the reason in my post by listing the Linux environments I use
> > and where I expect this to work. Interestingly the man page for more in
> > Debian 11 doesn't list -e but it seems to work anyway. But not on the
> > others I mentioned.
> 
> I don't have access to a plethora of Linux distributions, so I wasn't
> aware of how the -e option was treated by all of them.
> 
> Does the "export MORE=-e" variant work on the ones where -e is not
> accepted as a command-line option?  I would (perhaps naively) expect
> that any unknown options in the MORE environment variable would be
> silently ignored.  But if that does throw an error, then... um... sorry,
> I tried?

Hm Debian stable (bookworm) here. More accepts -e, more --help mentions
it, man page too.

More itself says:

  tomas@caliban:~$ more --version
  more from util-linux 2.38.1

Exporting MORE set to some unknown option (I did MORE=-q) leads to
more complaining and refusing service (so it seems to behave as if
one passed that option directly in the command line).

Cheers
-- 
t

Attachment: signature.asc
Description: PGP signature

Reply via email to