From 54b0097cee9d31612b6a2496f534e0b12602cc19 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sun, 15 Dec 2019 05:51:00 +0300 Subject: [PATCH] fix repl_test.v --- v.v | 2 +- vlib/compiler/main.v | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/v.v b/v.v index 8e3d1ece44..b99c9cfe8e 100755 --- a/v.v +++ b/v.v @@ -35,7 +35,7 @@ fn main() { return } // v run, v doc, etc - if !command.starts_with('-') && !os.exists(command) { + if !command.starts_with('-') && !command.ends_with('.v') && !os.exists(command) { v_command(command, args) } // Print the version and exit. diff --git a/vlib/compiler/main.v b/vlib/compiler/main.v index 6bda2ec280..e57a714d69 100644 --- a/vlib/compiler/main.v +++ b/vlib/compiler/main.v @@ -570,7 +570,6 @@ pub fn final_target_out_name(out_name string) string { } pub fn (v V) run_compiled_executable_and_exit() { - println('RUNNING') args := env_vflags_and_os_args() if v.pref.is_verbose { println('============ running $v.out_name ============') @@ -586,7 +585,6 @@ pub fn (v V) run_compiled_executable_and_exit() { break } } - println(args_after) cmd += args_after if v.pref.is_test {