Skip to content

Do not break lines when showing command to update the shell environment #7050

Description

@MisterDA

I'm seeing opam 2.5.1 print the command to update the current shell environment when the shell isn't in sync. Opam prints a newline, presumably when the command is longer than the terminal window. This doesn't let me simply copy-paste the command line, because it contains a newline, which should be escaped when pasting the command! I suppose that this line goes through a formatter. I think breaks should be disabled when outputting shell commands, or newlines escaped (but that's tricky to do portably).

# To update the current shell environment, run: eval $(opam env
--root=/home/antonin/xxx/opam/root-2.5.x --switch=ocaml-5)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions