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?



psto check that? – goldilocks Feb 22 '14 at 14:05FOO, but searching forfoofindsfoo&FOO. Even with the-iand-WiNS. – slm Feb 22 '14 at 14:15psI get either no (command less) options or-WNSso I am quite sure this is not apsproblem hiding-i/-I.lessseems to have not even the possibility of a config file which could intervene here. – Hauke Laging Feb 22 '14 at 14:20-iis supposed to do exactly that. The interesting question is: Does your less matchFOOforfoowithout-i? – Hauke Laging Feb 22 '14 at 14:21FOOonly matchesFOO. Seems like a bug to me. – slm Feb 22 '14 at 14:24less458; which is yours? – Hauke Laging Feb 22 '14 at 14:30less 458 (GNU regular expressions), searching forfoomatchesfooand notFooorFOO. Searching forFOOmatchesFOOalone. If run with-i,foomatchesfoo,FooandFOO. Which version oflessdo you have? – terdon Feb 22 '14 at 14:31less 458 (POSIX regular expressions)as well (Fedora 20 x86_64), and FOO will not match foo without-i. What's your$LANG? The C lib applies locale to determine upper/lower case differences. – goldilocks Feb 22 '14 at 14:34de_DE.UTF-8. But calling asLC_ALL=C LANG= less filedoesn't make a difference. – Hauke Laging Feb 22 '14 at 14:47less. – terdon Feb 22 '14 at 14:49foo) only. – Hauke Laging Feb 22 '14 at 15:07