Skip to content

Not aware of the current directory #930

Open
@i00

Description

@i00

If I run a cd command, the directory does not change

var cmd = client.RunCommand($"cd /etc/");
if (cmd.ExitStatus == 0){
    cmd = client.RunCommand($"pwd");
    if (cmd.ExitStatus == 0){
        console.WriteLine(cmd.result.);
    }
    } else {
        // ...
} else {
    // ...
}

The console just prints the starting directory in the example above!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions