Skip to content

environment variables are not parsed correctly #14381

@GuillaumeGomez

Description

@GuillaumeGomez

Problem

RUSTFLAGS="--output '/home/somewhere/out file'" cargo doc

With this command, the --output command will receive /home/somewhere/out and not /home/somewhere/out file, which is problematic

Steps

Add any flag with whitespace characters to environment variables.

Possible Solution(s)

Correctly parse arguments passed through environment variables.

Notes

No response

Version

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-environment-variablesArea: environment variablesA-rustflagsArea: rustflagsC-feature-requestCategory: proposal for a feature. Before PR, ping rust-lang/cargo if this is not `Feature accepted`S-triageStatus: This issue is waiting on initial triage.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions