1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-25 02:24:51 +03:00
kakoune/rc
Frank LENORMAND 21847a5f85 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.
2017-07-17 21:24:41 +03:00
..
base Highliight git MERGE_MSG files as commit messages 2017-07-08 13:39:48 +09:00
core rc man: Avoid undefined behavior on expr 2017-07-17 21:24:41 +03:00
extra rc tupfile: Fix the keywords regex 2017-06-29 13:13:01 +03:00