robbyrussell/oh-my-zsh — Issue #770: bogus output when subshells emit newlines
Author: Dieterbe
Created: 2011-12-23 10:29:35+00:00
State: open

I am getting some bogus output (i've had this for the entire time i've been using OMZ, and can reproduce this with the latest code in git, independent of the theme, even when using no parcticular theme)

it seems to trigger this, you need:

* command execution in a subshell
* output of that command must contain newlines

for example:

```
dieter@gibran:~% for i in $(echo "a\nb\nc\n"); do echo $i; done # bad

b
c; do; echo c; donea
b
c
dieter@gibran:~% for i in $(echo "a b c"); do echo $i; done # good
a
b
c
dieter@gibran:~%
```