forked from aniani/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 #8810)
This commit is contained in:
committed by
Bram Moolenaar
parent
9dcd349ca8
commit
6e82351130
@@ -10111,6 +10111,10 @@ shellescape({string} [, {special}]) *shellescape()*
|
||||
escaped. When 'shell' containing "csh" in the tail it's
|
||||
escaped a second time.
|
||||
|
||||
The "\" character will be escaped when 'shell' contains "fish"
|
||||
in the tail. That is because for fish "\" is used as an escape
|
||||
character inside single quotes.
|
||||
|
||||
Example of use with a |:!| command: >
|
||||
:exe '!dir ' . shellescape(expand('<cfile>'), 1)
|
||||
< This results in a directory listing for the file under the
|
||||
|
||||
Reference in New Issue
Block a user