Bugzilla – Bug 105865
lessecho does not quote arguments with spaces.
Last modified: 2006-01-02 10:09:54 UTC
Man page for lessecho claims: "... any argument containing spaces is enclosed in quotes." Actually this is not true: $ lessecho 'gg gg' gg gg $ Actually you must explicitly specify space character as an escape character to make it work: $ lessecho -m' ' 'gg gg' gg\ gg $
reassigned to the new maintainer
Still broken in 10.1 Alpha4.
I think this is rather a bug in the documentation, because lessecho is only used internally by less and is passed -n0x20 by it. Try cat /etc/SuSE-release | strace -eexecve -f -o strace less and type '-otest' in less. Then you can see something like that in the strace file: 10490 execve("/usr/bin/lessecho", ["lessecho", "-p0x22", "-d0x22", "-e\\", "-n0x3b", "-n0x20", "-n0x2a", "-n0x3f", "-n0x9", "-n0xa", "-n0x27", "-n0x22", "-n0x28", "-n0x29", "-n0x3c", "-n0x3e", ...], [/* 91 vars */]) = 0 So unless you give me a good reson to modify the behaviour of lessecho, I'll just change its man page (which was written ex post anyway, so it should match the behaviour of lessecho and not vice versa).
Changing the man page in a way that it reflects the actual behaviour is an appropriate solution as well from my point of view.
Fixed in openSUSE Factory (yes I know about the "bellow" typo ;-)).