• mipadaitu
    link
    fedilink
    English
    arrow-up
    31
    ·
    1 year ago

    Right click for paste, they have \n in the clipboard

      • Ghoelian@lemmy.dbzer0.com
        link
        fedilink
        arrow-up
        7
        ·
        1 year ago

        Depends on the terminal I think. Pretty sure KDE’s Konsole warns you that commands may be run when pasting something with newlines, but still allows it.

      • MeanEYE
        link
        fedilink
        arrow-up
        3
        ·
        1 year ago

        There is an exploit which addresses copy pasting things in terminal. Where you’d copy one thing, but when pasting you get more than you bargained for. Any decent terminal would ignore \n for this reason or at least not treat it as pressing enter.

      • LostXOR@fedia.io
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        It definitely runs the command for me in GNOME Terminal. Pasting multiple commands at once runs everything but the last command.