Skip to main content
14 events
when toggle format what by license comment
Jul 26 at 18:04 comment added Peter Cordes Right, might as well leave it now. But the best thing would have been to remove the -e after it was first pointed out.
Jul 26 at 17:57 comment added Gyro Gearloose @PeterCordes right, sorry. "unless you also had a \n or something", yes, I had. wouldn't want to change the core of the question as comments and answers are based on the original wording.
Jul 25 at 6:16 comment added Peter Cordes Well sure, just in future, have a second look at what you actually post in a question. When you use options that literally do nothing the way you're using them, people will spend their time teaching you about them. I get occasionally throwing some code at the wall to see if anything sticks, even when you think it won't matter, but the fact that you tried -e at all is weird unless you also had a \n or something in the operands which you took out here.
Jul 25 at 5:37 comment added Gyro Gearloose @PeterCordes as I explained to @ terdon, the "-e" is an accidental remnant form one of my many tries. And you are right with your solution to add an extra separator at the end of the line, that is what I finally did. Easy enough, once we understand what's going on.
Jul 24 at 20:58 comment added Peter Cordes echo -e is the same as echo for this case, so it's weird to use an option that doesn't do anything. To put a space separator after every element including the last one, use echo -n 'A B C D E F ' (which is exactly what Stephen is doing with printf '%s ' with multiple args, vs. I'm using one quoted string so all the spaces between elements are a literal part of that string for clarity. I could also have done echo -n A B C ... F '' with an empty final element to get echo to invent a final space after the F, before the empty string.)
Jul 24 at 9:23 comment added Gyro Gearloose @terdon I tried both echo -e and echo -n. -e for many tries with "\n", and possibly I've copied the wrong example. But given the answer from Stehen Kitt, this doesn't make a big difference, only, with -n the last words F and E are not separated. The answer implicitly explains that, too.
Jul 23 at 19:56 history became hot network question
Jul 23 at 17:17 comment added terdon Did you mean to use echo -n instead of echo -e?
Jul 23 at 17:16 history edited terdon CC BY-SA 4.0
added 136 characters in body
Jul 23 at 11:35 history edited Kusalananda CC BY-SA 4.0
mark up "rev"
Jul 23 at 11:19 answer added Raffa timeline score: 5
Jul 23 at 9:32 vote accept Gyro Gearloose
Jul 23 at 9:25 answer added Stephen Kitt timeline score: 18
Jul 23 at 9:17 history asked Gyro Gearloose CC BY-SA 4.0