Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bashinput environment does not add space before backslash #221

Open
lucaceresoli opened this issue Jan 20, 2024 · 1 comment
Open

bashinput environment does not add space before backslash #221

lucaceresoli opened this issue Jan 20, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@lucaceresoli
Copy link
Contributor

lucaceresoli commented Jan 20, 2024

In the STM32 variant of the yocto Lab1 (First Yocto Project build) we currently have a line that renders as:

sudo apt install bc build-essential chrpath cpio diffstat gawk git python3 texinfo wget gdisk\
    libssl-dev lz4

the missing space between "gdisk" and "" implies that copy-pasting these lines in a terminal results in:

E: Unable to locate package gdisklibssl-dev

This appears as a bug in the bashinput environment word wrapping.

The problem was reported against the yocto labs but it might as well appear elsewhere.

@lucaceresoli lucaceresoli added the bug Something isn't working label Jan 20, 2024
lucaceresoli added a commit that referenced this issue Jan 20, 2024
bashinput incrrectly renders without a space before the backslash, which
results in:

| sudo apt install bc build-essential chrpath cpio diffstat gawk git python3 texinfo wget gdisk\
|     libssl-dev lz4

the missing space between "gdisk" and "" implies that copy-pasting these
lines in a terminal results in:

  E: Unable to locate package gdisklibssl-dev

This appears as a bug in the bashinput environment word wrapping. Use the
verbatim environment until a suitable fix for bashinput is implemented.

Report-at: #221

Signed-off-by: Luca Ceresoli <[email protected]>
@lucaceresoli
Copy link
Contributor Author

For now added a workaround using verbatim in lieu of bashinput.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant