From 59794d0b999e544a94230d9562bf2b99d2ed74c7 Mon Sep 17 00:00:00 2001 From: hachem Date: Sun, 11 Oct 2026 02:16:56 +0200 Subject: feat: actual real vfs, not a faked one lmao --- gils/wc.rv | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gils/wc.rv') diff --git a/gils/wc.rv b/gils/wc.rv index 75a3ed2..33dd1e6 100644 --- a/gils/wc.rv +++ b/gils/wc.rv @@ -5,12 +5,12 @@ if context.argv:len() < 2 do fail("usage: wc \n") end else do const path = expand_path(context.argv[1]) - const size = fs:size(path) + const size = vfs:size(path) if size < 0 do fail("wc: #{path}: no such file\n") end else do - const contents = if (size > 0) fs:read_bytes(path, 0, size) else "" + const contents = if (size > 0) vfs:read_bytes(path, 0, size) else "" let line_count = 0 let word_count = 0 let in_word = :false -- cgit v1.3