mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
escape os.exec('"$vexec"') to support directories with spaces
This commit is contained in:

committed by
Alexander Medvednikov

parent
69b4594bb3
commit
0e0f0ae5ea
@ -48,7 +48,7 @@ pub fn run_repl_file(wd string, vexec string, file string) ?string {
|
||||
input_temporary_filename := 'input_temporary_filename.txt'
|
||||
os.write_file(input_temporary_filename, input)
|
||||
|
||||
r := os.exec('$vexec runrepl < $input_temporary_filename') or {
|
||||
r := os.exec('"$vexec" runrepl < $input_temporary_filename') or {
|
||||
os.rm(input_temporary_filename)
|
||||
return error('Could not execute "$vexec runrepl < $input_temporary_filename" ')
|
||||
}
|
||||
|
Reference in New Issue
Block a user