hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/gils/head.rv
diff options
context:
space:
mode:
authorhachem <im@hachem.wtf>2026-10-07 22:57:09 +0200
committerhachem <im@hachem.wtf>2026-10-07 22:57:09 +0200
commit5f6deca073728d0dafa2cd47d841b28d54af3aaf (patch)
treeaea2a645d819d52aa95fcc27056a64a355ef64b7 /gils/head.rv
parente55291a32a8b3f7b5c105cd79e86f3c19f19b3d4 (diff)
fix: relative paths + run revo scripts
Diffstat (limited to 'gils/head.rv')
-rw-r--r--gils/head.rv2
1 files changed, 1 insertions, 1 deletions
diff --git a/gils/head.rv b/gils/head.rv
index edfd096..addd11a 100644
--- a/gils/head.rv
+++ b/gils/head.rv
@@ -18,7 +18,7 @@ else do
let limit = 10
let path_arg = context.argv[1]
if (context.argv:len() >= 3 and parse_pid(context.argv[1]) >= 0) do limit = parse_pid(context.argv[1]) path_arg = context.argv[2] end
- const lines = file_lines(abspath(path_arg))
+ const lines = file_lines(expand_path(path_arg))
if lines == :nil do puts("head: no such file\n") end
else do
let index = 0