Timeline for Automatic transformation of newlines in shell variable assignment
Current License: CC BY-SA 3.0
4 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 28, 2014 at 15:15 | comment | added | goldilocks | @StephaneChazelas : Sounds like an answer. | |
| Feb 28, 2014 at 15:07 | comment | added | Stéphane Chazelas | @goldilocks, it's not interpreted as a space, it's just that you're using the split+glob operator by leaving your variables unquoted (and echo outputs its arguments separated by a space). | |
| Feb 28, 2014 at 14:58 | comment | added | goldilocks | I'm actually not looking for a way to remove the newlines (there are no doubt dozens). I'm looking for an explanation as to how/why a newline ends up interpreted as a space. | |
| Feb 28, 2014 at 14:48 | history | answered | glenn jackman | CC BY-SA 3.0 |