* dcrt0.cc (build_argv): Allow quoted filenames in @ expression.

This commit is contained in:
Corinna Vinschen 2012-12-20 13:39:34 +00:00
parent 081e9da6e8
commit 45edfcd2ab
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2012-12-20 Corinna Vinschen <corinna@vinschen.de>
* dcrt0.cc (build_argv): Allow quoted filenames in @ expression.
2012-12-19 Christopher Faylor <me.cygwin2012@cgf.cx>
* select.h (select_stuff::select_stuff): Make default constructor

View File

@ -320,7 +320,11 @@ build_argv (char *cmd, char **&argv, int &argc, int winshell)
/* Skip over characters until the closing quote */
{
sawquote = cmd;
cmd = quoted (cmd, winshell && argc > 0);
/* Handle quoting. Only strip off quotes if the parent is
a Cygwin process, or if the word starts with a '@'.
In this case, the insert_file function needs an unquoted
DOS filename and globbing isn't performed anyway. */
cmd = quoted (cmd, winshell && argc > 0 && *word != '@');
}
if (issep (*cmd)) // End of argument if space
break;