kakoune/rc/detection
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
..
editorconfig.kak rc: Use the standard fail command to report errors 2019-11-14 08:32:55 +01:00
file.kak Clear unwanted environment variable 2020-09-02 06:54:19 +02:00
modeline.kak Avoid accidentally using environment variables in sh scopes 2020-08-24 19:01:05 +02:00