Timeline for Pasting into terminal including comments issue
Current License: CC BY-SA 4.0
14 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Oct 8, 2020 at 20:21 | answer | added | nethero | timeline score: 0 | |
| Jul 20, 2018 at 17:48 | history | tweeted | twitter.com/StackUnix/status/1020364857919537152 | ||
| Jul 20, 2018 at 12:45 | comment | added | egmont | Nice catch! I can reproduce with bash-4.4, but not with the developer branch. You still get a two-line command there though (without the comment); unlike with the comment-free version where a ';' gets inserted. You might want to report this discrepancy to the developers. | |
| Jul 20, 2018 at 9:56 | comment | added | Anderson | @Kusalananda I was talking about shell functionality in terms of pressing arrow up to reuse a previous command in the history. | |
| Jul 20, 2018 at 9:54 | comment | added | pLumo | I updated the Q with the information | |
| Jul 20, 2018 at 9:54 | history | edited | terdon♦ |
edited tags
|
|
| Jul 20, 2018 at 9:53 | comment | added | Kusalananda♦ | @Anderson Changing one's shell to get pasting to work as expected would be a bad solution as the code that the user is pasting may well be particular for the shell they are currently using. | |
| Jul 20, 2018 at 9:52 | history | edited | pLumo | CC BY-SA 4.0 |
added 54 characters in body
|
| Jul 20, 2018 at 9:48 | comment | added | terdon♦ | @Kusalananda that doesn't change the fact that this is an interesting behavior though. Why would the comments change things? And we often paste a few lines of code into a terminal, that isn't always a bad thing. | |
| Jul 20, 2018 at 9:47 | comment | added | Anderson |
This depends on the shell you are using. Using e.g. zsh will work as expected.
|
|
| Jul 20, 2018 at 9:46 | comment | added | muru | Using bracketed paste as suggested in JoL's answer handles this better. | |
| Jul 20, 2018 at 9:46 | comment | added | terdon♦ | Please edit your question and tell us what shell you are using and what terminal emulator. | |
| Jul 20, 2018 at 9:42 | comment | added | Kusalananda♦ | As I commented on your previous question, don't past shell code inte the terminal. If you have a workflow that depends on you pasting shell code into a terminal, then you really seriously have to reconsider that workflow. | |
| Jul 20, 2018 at 9:39 | history | asked | pLumo | CC BY-SA 4.0 |