cmd: Use absolute Command.dir

This commit is contained in:
ge
2026-01-29 03:40:42 +03:00
parent 8e7d757b3b
commit 7acab2165e

2
cmd.v
View File

@@ -268,7 +268,7 @@ pub fn (mut c Command) start() !int {
path: path path: path
argv: c.args argv: c.args
env: if c.env.len == 0 { os.environ() } else { c.env } env: if c.env.len == 0 { os.environ() } else { c.env }
dir: c.dir dir: os.abs_path(c.dir)
post_fork: [parent_pipes_hook] post_fork: [parent_pipes_hook]
pre_exec: pre_exec_hooks pre_exec: pre_exec_hooks
} }