Skip to content

--print link-args does not print a newline #127507

Closed
@tgross35

Description

@tgross35

Running with --print link-args doesn't include a trailing \n so the next shell prompt gets smooshed on:

root@886c7cdb990c:/home# rustc a.rs --print link-args
LC_ALL="C" PATH="/root/.rustup/ /* SNIP */ "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs"root@886c7cdb990c:/home#

I can't imagine this is intentional since all other --print options seem to include the newline.

rustc 1.81.0-nightly (35b658fb1 2024-07-08)
binary: rustc
commit-hash: 35b658fb1071d752d092751d9f17a9fa7b154ec4
commit-date: 2024-07-08
host: aarch64-unknown-linux-gnu
release: 1.81.0-nightly
LLVM version: 18.1.7

Metadata

Metadata

Assignees

Labels

A-CLIArea: Command-line interface (CLI) to the compilerC-bugCategory: This is a bug.E-easyCall for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions