hachem.wtf
aboutsummaryrefslogtreecommitdiff
path: root/gils/tail.rv
diff options
context:
space:
mode:
Diffstat (limited to 'gils/tail.rv')
-rw-r--r--gils/tail.rv2
1 files changed, 1 insertions, 1 deletions
diff --git a/gils/tail.rv b/gils/tail.rv
index 9cd5647..4a661b4 100644
--- a/gils/tail.rv
+++ b/gils/tail.rv
@@ -19,7 +19,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("tail: no such file\n") end
else do
let start = lines:len() - limit