mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
UPD: Remove not needed ShieldChar.
This commit is contained in:
parent
011a446133
commit
64b7b0caa2
2 changed files with 2 additions and 4 deletions
|
|
@ -44,7 +44,6 @@ const
|
|||
RunInTerm = 'cmd.exe /K'; // default run in terminal command
|
||||
fmtRunInTerm = '%s "%s"';
|
||||
fmtRunInShell = '%s /C "%s"';
|
||||
ShieldChar = '/';
|
||||
MonoSpaceFont = 'Fixedsys';
|
||||
{$ELSE}
|
||||
faFolder = S_IFDIR;
|
||||
|
|
@ -53,7 +52,6 @@ const
|
|||
RunInTerm = 'xterm -e sh -c'; // default run in terminal command
|
||||
fmtRunInTerm = '%s ''%s ; echo -n Press ENTER to exit... ; read a''';
|
||||
fmtRunInShell = '%s -c ''%s''';
|
||||
ShieldChar = '\';
|
||||
MonoSpaceFont = 'Monospace';
|
||||
{$ENDIF}
|
||||
|
||||
|
|
|
|||
|
|
@ -1097,14 +1097,14 @@ function EscapeDoubleQuotes(const Str: String): String;
|
|||
begin
|
||||
// Double quotes are weak quotes and a few special characters are allowed
|
||||
// which need to be escaped.
|
||||
Result := EscapeString(Str, DoubleQuotesSpecialChars, ShieldChar);
|
||||
Result := EscapeString(Str, DoubleQuotesSpecialChars, '\');
|
||||
end;
|
||||
|
||||
function EscapeNoQuotes(const Str: String): String;
|
||||
begin
|
||||
// When neither single nor double quotes are used several special characters
|
||||
// need to be escaped with backslash (single character quote).
|
||||
Result := EscapeString(Str, NoQuotesSpecialChars, ShieldChar);
|
||||
Result := EscapeString(Str, NoQuotesSpecialChars, '\');
|
||||
end;
|
||||
|
||||
// Helper for RemoveQuotation and SplitCmdLine.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue