kakoune/rc/core
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
..
asciidoc.kak More tolerant recognition of underlined titles in asciidoc highlight 2017-01-25 00:24:41 +00:00
c-family.kak rc c-family: Add a hook to the insert group 2017-06-29 13:29:48 +03:00
comment.kak Merge remote-tracking branch 'lenormf/doc-public-options' 2017-05-21 07:09:37 +01:00
diff.kak update command names 2017-01-04 13:04:27 +01:00
doc.kak rc: Fix calls to mktemp 2017-06-16 11:51:46 +03:00
formatter.kak rc formatter: Don't force selection restoration 2017-07-14 11:21:48 +03:00
grep.kak Update command names 2017-06-16 13:53:03 +02:00
kakrc.kak Use the extra_word_chars option in word based normal commands 2017-06-26 15:28:41 +01:00
make.kak Update command names 2017-06-16 13:53:03 +02:00
makefile.kak Adds faces module and function. Renames identifier face to variable. 2017-02-09 21:43:29 -05:00
man.kak rc man: Avoid undefined behavior on expr 2017-07-17 21:24:41 +03:00
python.kak Various auto indent fixes regarding wrong use of x instead of <a-x> 2017-01-13 00:50:03 +00:00
sh.kak Make shell variable expansion in "strings" highlighted the same way as in code 2017-05-25 19:54:08 +01:00