UPD: Remove not needed ShieldChar.

This commit is contained in:
cobines 2011-09-24 17:13:57 +00:00
commit 64b7b0caa2
2 changed files with 2 additions and 4 deletions

View file

@ -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}

View file

@ -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.