Trying to find out how to use case-insensitive searches in less
I found this on serverfault.
That seems to perfectly answer my question. The problem is: It doesn't work like that here (OpenSUSE 13.1; less 458).
I had aliased less
to less -WiNS
but I changed that. But even calling it as command less file
does not change anything. I have checked with ps
that there is no -i
option in the command line any more.
As the answer says the less
help (pressing h
) states that I can use -i
within less
, too. If I use that once then less
tells me it had changed to case-insensitive search (that is kind of correct: nothing changes). If I use it twice then less
tells me it had turned to case-sensitive search. And right, then it works as it should from the start. Giving -i
twice on the command line does not work, though.
What's up here?
ps
to check that?FOO
, but searching forfoo
findsfoo
&FOO
. Even with the-i
and-WiNS
.ps
I get either no (command less
) options or-WNS
so I am quite sure this is not aps
problem hiding-i
/-I
.less
seems to have not even the possibility of a config file which could intervene here.-i
is supposed to do exactly that. The interesting question is: Does your less matchFOO
forfoo
without-i
?FOO
only matchesFOO
. Seems like a bug to me.