1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vfmt: handle file paths with spaces

This commit is contained in:
Delyan Angelov
2020-05-14 09:07:14 +03:00
parent d830620651
commit 74005b4362
2 changed files with 17 additions and 2 deletions

View File

@@ -100,7 +100,7 @@ fn main() {
for file in files {
fpath := os.real_path(file)
mut worker_command_array := cli_args_no_files.clone()
worker_command_array << ['-worker', fpath]
worker_command_array << ['-worker', util.quote_path_with_spaces(fpath)]
worker_cmd := worker_command_array.join(' ')
if foptions.is_verbose {
eprintln('vfmt worker_cmd: $worker_cmd')