Overview
| Artifact ID: | 8546b3e8b462347b97f6cb04105a5ed2d629e87ffd17158ee5d73477465d654b |
|---|---|
| Ticket: | bc4ac0dd5f4c87677ea45fb5b480894630e3c5fb
lsearch -sorted -inline -subindices incorrect result |
| User & Date: | juliannoble2 on 2024-11-18 17:37:14 |
Changes
- icomment:
I tried some 8.7 bawt distributions.. 8.7a1 behaves as you describe for 8.6 8.8a5 shows the bug the same as 9 >And also your mentioned correct ones are incorrect, as only the first sublist item is returned and not the whole sublist. I think that the whole sublist should only be returned if you drop the -subindices option Without the -subindices option - the bug doesn't appear though Regarding your example - I don't think you should be using the -subindices option there. On 8.6 you get the same result with or without -subindices and I believe that with -subindices it should return only the matched portion as it does on 9 This another of the reasons I'd like to see some of these things tidied up. Reading the docs is one thing - but I've occasionally (mis)learned some of the behaviour by experimentation. Sometimes I've used constructs that I've only later realised were only necessary because of a bug. (e.g I was using a double index where it should have only required one) The error only occurs with both -sorted and -subindices - e.g lsearch -index 0 -inline -sorted -subindices {{-con "show console"} {-log "set log level"} {-zzz "blah ok"}} -log -con As this search only returns (when it works!) what you were searching for anyway - that's why I think it's not all that useful aside from my contrived example - login: "juliannoble2"
- mimetype: "text/plain"