Skip to content

posix: relative paths break after cwd change in wasm bash #1436

@bdsqqq

Description

@bdsqqq

when bash runs in @rivet-dev/agent-os-posix under secure-exec, pwd can report the expected worktree cwd while spawned commands still resolve relative paths incorrectly. in the repro at https://github.com/bdsqqq/agent-os-posix-path-repro, cd <worktree> && pwd && cat note.txt prints the worktree path and then fails cat: note.txt: No such file or directory, while cat /absolute/path/to/note.txt succeeds. reproduced on @rivet-dev/agent-os-posix 0.1.0 and 0.1.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions