From 85ba41a4b343d0a8fe6d3d5af90a74640220f5cb Mon Sep 17 00:00:00 2001 From: Jason Cox Date: Tue, 31 Aug 2021 20:16:03 -0600 Subject: vim-patch:8.2.3385: escaping for fish shell does not work properly Problem: Escaping for fish shell does not work properly. Solution: Insert a backslash before a backslash. (Jason Cox, closes vim/vim#8810) https://github.com/vim/vim/commit/6e82351130ddb8d13cf3748b47f07cae77886fc7 --- runtime/doc/eval.txt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'runtime') diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 87240831a2..9430d4ab58 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -8290,6 +8290,10 @@ shellescape({string} [, {special}]) *shellescape()* - The character is escaped (twice if {special} is a ||non-zero-arg|). + If 'shell' contains "fish" in the tail, the "\" character will + be escaped because in fish it is used as an escape character + inside single quotes. + Example of use with a |:!| command: > :exe '!dir ' . shellescape(expand(''), 1) < This results in a directory listing for the file under the -- cgit