rc man: Avoid undefined behavior on `expr`
rc man: Avoid undefined behavior on `expr`

Looking up the man page for `index` was failing on systems using
GNU/coreutils. The `:man` command matched whatever page it was given with
the `expr` utility. This tool behaves as expected when it follows strictly
the POSIX standard but the GNU implementation introduces additional commands
(including `index`), about which the standard states:

```
The use of string arguments length, substr, index, or match produces unspecified results.
```

As a result, parsing the man page number is now implemented with pure
shell expansions, to avoid triggering an undefined behavior when the topic
searched is one of the keywords above.

occivink/kakoune,occivink/kakoune,jkonecny12/kakoune,mawww/kakoune,lenormf/kakoune,danr/kakoune,jkonecny12/kakoune,casimir/kakoune,occivink/kakoune,alexherbo2/kakoune,Somasis/kakoune,danr/kakoune,alexherbo2/kakoune,alexherbo2/kakoune,jjthrash/kakoune,casimir/kakoune,Somasis/kakoune,lenormf/kakoune,mawww/kakoune,mawww/kakoune,Somasis/kakoune,jjthrash/kakoune,lenormf/kakoune,casimir/kakoune,danr/kakoune,jjthrash/kakoune,mawww/kakoune,lenormf/kakoune,jjthrash/kakoune,Somasis/kakoune,casimir/kakoune,jkonecny12/kakoune,danr/kakoune,jkonecny12/kakoune,occivink/kakoune,alexherbo2/kakoune