home/rc/tools
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
..
go gopls.kak: use nop for removing temp dir 2020-10-17 09:47:07 +02:00
python Fix jedi off-by-one and refactor jedi 2021-05-04 20:57:13 +02:00
rust simplify rust completion to match generic Kakoune completions 2019-05-17 20:00:40 +03:00
autorestore.asciidoc Update plugin docs to not duplicate docstring information. 2020-09-03 17:18:19 +10:00
autorestore.kak Reference content goes in docstrings, explanations go in prose docs. 2020-09-04 19:20:50 +10:00
autowrap.kak rc: Make docstrings more readable 2020-02-03 20:53:28 +01:00
clang.kak Replace write -atomic with write -method <method> 2020-10-27 20:20:18 +11:00
comment.kak Disable comment_line for ocaml/coq 2021-10-04 13:19:00 -04:00
ctags.kak Merge remote-tracking branch 'lenormf/patch-3' 2020-02-05 20:41:40 +11:00
doc.asciidoc Update plugin docs to not duplicate docstring information. 2020-09-03 17:18:19 +10:00
doc.kak rc doc: Don't spawn processes unecessarily 2021-09-16 11:47:44 +03:00
format.kak rc: Consistently use a dot as template separator 2020-11-30 14:24:06 +03:00
git.kak Clear unwanted environment variable 2020-09-02 06:54:19 +02:00
grep.kak Apply suggestions from code review 2020-09-06 10:56:37 +10:00
lint.asciidoc Reference content goes in docstrings, explanations go in prose docs. 2020-09-04 19:20:50 +10:00
lint.kak Fix #3957 2021-07-09 22:18:25 -03:00
make.kak rc/tools/make.kak: quote "${kak_opt_makecmd}" 2021-11-05 13:43:18 -03:00
man.kak Fix man for systems lacking the col command 2021-01-26 09:28:24 +11:00
spell.kak Add standard DiagnosticError and DiagnosticWarning faces. 2021-09-07 17:46:50 +10:00