winegcc: Put quotes around arguments with spaces when printing them.
This makes it easier to copy and paste the command into the shell. Signed-off-by: Chip Davis <cdavis@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
352a64cbbc
commit
f83646736b
|
@ -365,7 +365,11 @@ int spawn(const strarray* prefix, const strarray* args, int ignore_errors)
|
||||||
|
|
||||||
if (verbose)
|
if (verbose)
|
||||||
{
|
{
|
||||||
for(i = 0; argv[i]; i++) printf("%s ", argv[i]);
|
for(i = 0; argv[i]; i++)
|
||||||
|
{
|
||||||
|
if (strpbrk(argv[i], " \t\n\r")) printf("\"%s\" ", argv[i]);
|
||||||
|
else printf("%s ", argv[i]);
|
||||||
|
}
|
||||||
printf("\n");
|
printf("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue