1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-28 01:00:28 +03:00
kakoune/rc
Johannes Altmanninger 407c72d90a Clear unwanted environment variable
This adds two things I forgot in
9a7d8df4 (Avoid accidentally using environment variables in sh scopes)

Mea culpa, the problem was that I was skipping matches with "filetype"
because that's usually just a hook parameter as in "WinSetOption filetype=.."

	rg --pcre2 '\b(?!filetype=)\w+=' rc/

So I missed these two cases where a shell variable is actually called "filetype".

The one in git.kak was not a problem because show_git_cmd_output is only
ever called with sane inputs.  However, file.kak does use the filetype
environment variable for many mime types, for example:

	filetype=somefiletype\''; echo -debug injection; nop '\' kak /dev/null

Will run the echo since /dev/null has mime type "inode/chardevice"
2020-09-02 06:54:19 +02:00
..
detection Clear unwanted environment variable 2020-09-02 06:54:19 +02:00
filetype rc markdown: Highlight trailing spaces properly 2020-09-01 13:12:58 +03:00
tools Clear unwanted environment variable 2020-09-02 06:54:19 +02:00
windowing Allow multiple arguments in tmux repl 2020-08-30 10:53:03 +10:00