Skip to content

load-env can update PWD coming from the pipeline #12520

@yizhepku

Description

@yizhepku

Describe the bug

load-env { PWD: foo } doesn't work, but { PWD: foo } | load-env does. I think this behavior is inconsistent.

How to reproduce

mkdir foo
load-env { PWD: foo } # error: PWD cannot be set manually
{ PWD: foo } | load-env # OK

Expected behavior

load-env should either accept both or reject both.

Screenshots

No response

Configuration

key value
version 0.91.0
branch
commit_hash
build_os linux-x86_64
build_target x86_64-unknown-linux-gnu
rust_version rustc 1.76.0 (07dca489a 2024-02-04) (built from a source tarball)
cargo_version cargo 1.76.0
build_time 1980-01-01 00:00:00 +00:00
build_rust_channel release
allocator mimalloc
features default, sqlite, trash, which, zip
installed_plugins

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions