From c50c6812ceeae052ae772c13df0f484e7744479d Mon Sep 17 00:00:00 2001 From: Naheel Date: Sun, 22 Mar 2020 10:43:24 +0300 Subject: [PATCH] os: fix cp() spaces in files names --- vlib/os/os.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/os/os.v b/vlib/os/os.v index d72f04daf3..270d04c8a3 100644 --- a/vlib/os/os.v +++ b/vlib/os/os.v @@ -160,7 +160,7 @@ pub fn cp(old, new string) ?bool { return error_with_code('failed to copy $old to $new', int(result)) } } $else { - os.system('cp $old $new') + os.system('cp "$old" "$new"') return true // TODO make it return true or error when cp for linux is implemented } }