hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/gils/wc.rv
diff options
context:
space:
mode:
Diffstat (limited to 'gils/wc.rv')
-rw-r--r--gils/wc.rv2
1 files changed, 1 insertions, 1 deletions
diff --git a/gils/wc.rv b/gils/wc.rv
index 2f8be3d..9a184ca 100644
--- a/gils/wc.rv
+++ b/gils/wc.rv
@@ -3,7 +3,7 @@
const context = env.ctx
if context.argv:len() < 2 do puts("usage: wc <path>\n") end
else do
- const path = abspath(context.argv[1])
+ const path = expand_path(context.argv[1])
const size = fs:size(path)
if size < 0 do puts("wc: #{path}: no such file\n") end
else do