diff --git a/cmd/tools/vup.v b/cmd/tools/vup.v index 9b29e81063..87072375f3 100644 --- a/cmd/tools/vup.v +++ b/cmd/tools/vup.v @@ -66,7 +66,7 @@ fn (app App) recompile_v() { println('> recompiling v itself with `$vself` ...') } if self_result := os.exec(vself) { - println(self_result.output) + println(self_result.output.trim_space()) if self_result.exit_code == 0 { return } diff --git a/vlib/os/os_windows.c.v b/vlib/os/os_windows.c.v index 1f0adf07d4..0850a5857e 100644 --- a/vlib/os/os_windows.c.v +++ b/vlib/os/os_windows.c.v @@ -281,7 +281,7 @@ pub fn exec(cmd string) ?Result { break } } - soutput := read_data.str().trim_space() + soutput := read_data.str() read_data.free() exit_code := u32(0) C.WaitForSingleObject(proc_info.h_process, C.INFINITE)