Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 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. Commented Feb 28, 2014 at 14:58
  • 1
    @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). Commented Feb 28, 2014 at 15:07
  • @StephaneChazelas : Sounds like an answer. Commented Feb 28, 2014 at 15:15