From 00fab72f8c01bff03fac84cc4ffaad1f401d9b7f Mon Sep 17 00:00:00 2001 From: Peter Veenstra Date: Mon, 21 Nov 2005 07:21:28 +0000 Subject: [PATCH] quotes can end as well Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2381 --- src/shell/shell.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shell/shell.cpp b/src/shell/shell.cpp index 9a463917..18ef8e2e 100644 --- a/src/shell/shell.cpp +++ b/src/shell/shell.cpp @@ -16,7 +16,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -/* $Id: shell.cpp,v 1.64 2005-11-20 20:15:16 qbix79 Exp $ */ +/* $Id: shell.cpp,v 1.65 2005-11-21 07:21:28 qbix79 Exp $ */ #include #include @@ -119,7 +119,7 @@ Bitu DOS_Shell::GetRedirection(char *s, char **ifn, char **ofn,bool * append) { bool quote = false; while ( (ch=*lr++) ) { - if(quote) { /* don't parse redirection within quotes. Not perfect yet. Escaped quotes will mess the count up */ + if(quote && ch != '"') { /* don't parse redirection within quotes. Not perfect yet. Escaped quotes will mess the count up */ *lw++ = ch; continue; }