Skip to content

rust-gdbgui shell script crashes due to improper string quoting #115097

Closed
@real-eren

Description

@real-eren

I tried this code:

rust-gdbgui $my_executable

I expected to see this happen: gdbgui starts

Instead, this happened: (dash) shell error
/home/eren/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/bin/rust-gdbgui: 58: -iex "add-auto-load-safe-path /home/eren/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/etc": not found

Meta

rustc --version --verbose:

rustc 1.71.1 (eb26296b5 2023-08-03)
binary: rustc
commit-hash: eb26296b556cef10fb713a38f3d16b9886080f26
commit-date: 2023-08-03
host: x86_64-unknown-linux-gnu
release: 1.71.1
LLVM version: 16.0.5

The bug was introduced by commit 8dd0ec6, which closes a string before an escaped newline.

Backtrace

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: This is a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions