kakoune/rc
throwawayaccount12345-1 3e580b185c
rc/tools/make.kak: quote "${kak_opt_makecmd}"
As per man page eval(1p):
> The eval utility shall construct a command by concatenating arguments together,
> separating each with a `<space>` character.  The constructed command shall be
> read and executed by the shell.

When not quoting `$kak_opt_makecmd` in the eval, the variable is split by
newlines and spaces and then joined by spaces to form the command. If there
were newlines in `$kak_opt_makecmd`, the command would be malformed.


To reproduce:
```kak
set-option global makecmd "
echo foo
echo bar"
make a b c
```

Expected output in the `*make*` buffer:
```
foo
bar a b c
```

Actual output:
```
foo echo bar a b c
```

This patch fixes this.
2021-11-05 13:43:18 -03:00
..
detection Stop editorconfig.kak from setting aligntab 2021-08-29 11:55:33 -07:00
filetype Merge remote-tracking branch 'sidkshatriya/erlang-syntax-highlighting' 2021-10-28 09:09:46 +11:00
tools rc/tools/make.kak: quote "${kak_opt_makecmd}" 2021-11-05 13:43:18 -03:00
windowing Merge remote-tracking branch 'StatPal/master' into HEAD 2021-08-28 13:55:11 +10:00