for (size_t i = 0; i < cmd.length(); ++i) {
char c = cmd[i];
- if ((c == '"' || c == '\'') && !escaped)
+ if (c == '"' && !escaped)
inquote = !inquote;
else if (c == '\\' && !escaped)
escaped = !escaped;
int Systemcall::startscript(Starttype how, string const & what, bool process_events)
{
string outfile;
- QString cmd = toqstr(parsecmd(what, outfile));
- if (cmd.contains("'")) {
- LYXERR0("Systemcall: '" << cmd << "' contains single quotes ', please check configuration, ' will be replaced by \"");
- cmd = cmd.replace("'","\"");
- }
+ QString cmd = toqstr(parsecmd(what, outfile));
SystemcallPrivate d(outfile);