From f66b3fcf6ce2801e3f378827e0ed19596901a9ba Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 20 Feb 2012 22:18:30 +0100 Subject: updated for version 7.3.446 Problem: Win32: External commands with special characters don't work. Solution: Add the 'shellxescape' option. --- runtime/doc/options.txt | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'runtime') diff --git a/runtime/doc/options.txt b/runtime/doc/options.txt index 0616857bed..2836be5d55 100644 --- a/runtime/doc/options.txt +++ b/runtime/doc/options.txt @@ -6043,8 +6043,9 @@ A jump table for the options with a short description can be found at |Q_op|. *'shellxquote'* *'sxq'* 'shellxquote' 'sxq' string (default: ""; - for Win32, when 'shell' is cmd.exe or - contains "sh" somewhere: "\"" + for Win32, when 'shell' is cmd.exe: "(" + for Win32, when 'shell' contains "sh" + somewhere: "\"" for Unix, when using system(): "\"") global {not in Vi} @@ -6052,6 +6053,9 @@ A jump table for the options with a short description can be found at |Q_op|. the "!" and ":!" commands. Includes the redirection. See 'shellquote' to exclude the redirection. It's probably not useful to set both options. + When the value is '(' then ')' is appended. When the value is '"(' + then ')"' is appended. + When the value is '(' then also see 'shellxescape'. This is an empty string by default on most systems, but is known to be useful for on Win32 version, either for cmd.exe which automatically strips off the first and last quote on a command, or 3rd-party shells @@ -6061,6 +6065,16 @@ A jump table for the options with a short description can be found at |Q_op|. This option cannot be set from a |modeline| or in the |sandbox|, for security reasons. + *'shellxescape'* *'sxe'* +'shellxescape' 'sxe' string (default: ""; + for MS-DOS and MS-Windows: "\"&|<>()@^") + global + {not in Vi} + When 'shellxquote' is set to "(" then the characters listed in this + option will be escaped with a '^' character. This makes it possible + to execute most external commands with cmd.exe. + + *'shiftround'* *'sr'* *'noshiftround'* *'nosr'* 'shiftround' 'sr' boolean (default off) global -- cgit v1.2.3