Skip to main content
13 events
when toggle format what by license comment
Feb 24, 2020 at 9:17 comment added JdeBP By a couple of months in this case. (-: unix.stackexchange.com/a/111974/5132
Sep 15, 2017 at 19:38 comment added dessert I used your astonishing approach in this Ask Ubuntu question, where the problem originally was raised: Main Terminal Window Displaying Commands Only
Sep 15, 2017 at 19:17 vote accept dessert
Sep 12, 2017 at 18:40 history edited Stéphane Chazelas CC BY-SA 3.0
deleted 12 characters in body
Sep 12, 2017 at 14:25 comment added Stéphane Chazelas @glennjackman, I'd say that has to be taken care of by the caller. insert here is meant to get shell code as argument (like eval) so you can call it with insert 'VAR="x y" cmd2 ' or insert 'cmd "${default_opt[@]}" ' for instance which you couldn't do if insert was quoting its arguments by itself.
Sep 12, 2017 at 13:34 comment added glenn jackman Perhaps I'm over-complicating matters. I was thinking of the case where the pre-populated text would be like foo "bar baz" where the 2nd argument needs to be quoted.
Sep 12, 2017 at 8:18 history edited Stéphane Chazelas CC BY-SA 3.0
added 627 characters in body
Sep 12, 2017 at 7:07 history edited Stéphane Chazelas CC BY-SA 3.0
added 985 characters in body
Sep 12, 2017 at 6:29 history edited Stéphane Chazelas CC BY-SA 3.0
added 44 characters in body
Sep 12, 2017 at 6:24 comment added Stéphane Chazelas Hi @glenn. Not sure what you mean. Here we want to insert foo or a U+200B character, not 'foo '
Sep 12, 2017 at 6:23 history edited Stéphane Chazelas CC BY-SA 3.0
added 44 characters in body
Sep 11, 2017 at 23:10 comment added glenn jackman The insert function needs a bit of work to properly quote arguments that require quoting. Perhaps with perl ... -- "$(printf "%q " "$@")"
Sep 11, 2017 at 22:48 history answered Stéphane Chazelas CC BY-SA 3.0