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.

13
  • 4
    that's bizarre. Commented Jan 22, 2016 at 20:04
  • 2
    If I use echo instead of ls, it works the second way in both the cases. Commented Jan 22, 2016 at 20:11
  • 1
    Looks somewhat similar to the code example in this answer. Commented Jan 22, 2016 at 20:13
  • 4
    /bin/echo preserves the difference, so it seems like output redirections for external commands happen in a subshell. Commented Jan 22, 2016 at 20:14
  • 2
    Definitely worth a bug report to [email protected]; it's not fixed in 4.4, currently under development. Commented Jan 22, 2016 at 20:17