Skip to main content
15 events
when toggle format what by license comment
Apr 11, 2021 at 22:07 comment added G-Man Says 'Reinstate Monica' FYI, bash automatically appends a newline to a "here string".  See bash(1): "The result is supplied as a single string, with a newline appended, to the command on its standard input".  Try printf '%s' 'MY_COMMAND' | xsel -ib instead.
Apr 11, 2021 at 22:05 history edited G-Man Says 'Reinstate Monica' CC BY-SA 4.0
General improvements; fixed some damage caused by previous edits.
Apr 10, 2021 at 18:11 history edited cipricus CC BY-SA 4.0
added 35 characters in body
Apr 9, 2021 at 7:29 comment added cipricus @ewen-goisot - answered under you answer.
Apr 9, 2021 at 7:22 history edited cipricus CC BY-SA 4.0
added 4 characters in body
S Apr 8, 2021 at 20:27 history suggested ewen-goisot CC BY-SA 4.0
Removed "a space [is present at the end]" because it can only be a new line char, like "Enter". Added `bash` tag because the newline issue isn't present in other shells like `zsh`.
Apr 8, 2021 at 20:25 review Suggested edits
S Apr 8, 2021 at 20:27
Apr 8, 2021 at 19:56 comment added ewen-goisot The thing you see at the end is definitely not a "space", it's a "Enter" (aka "newline" or \n). That's the symbol I see when I do <kbd>Shift+Enter</kbd> with libreoffice. A space at the end of a command will never make a bash command to execute. Also, I'm not sure I really understood your problem : do you only want to prevent bash from executing any text you pasted ? Or do you want something more ?
Apr 8, 2021 at 19:00 answer added ewen-goisot timeline score: 1
Apr 8, 2021 at 16:41 answer added cipricus timeline score: 1
Apr 8, 2021 at 16:39 history edited cipricus CC BY-SA 4.0
edited body
Apr 8, 2021 at 15:22 history edited Kusalananda CC BY-SA 4.0
Markup
Apr 8, 2021 at 14:13 history edited cipricus CC BY-SA 4.0
added 478 characters in body
Apr 8, 2021 at 12:53 history edited cipricus CC BY-SA 4.0
edited title
Apr 8, 2021 at 12:47 history asked cipricus CC BY-SA 4.0