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.

Required fields*

3
  • thanks that works for me! also nice using the slash at the end of the line and saving the line-break. Commented Dec 7, 2017 at 22:49
  • 1
    @nath, yeah, there's no special syntax for a pipeline in a function, the outer pipeline doesn't really need to know if one of the commands is a function instead of something else. Commented Dec 7, 2017 at 22:50
  • 1
    @nath, and yes, backslashes are ugly :( Also, with foo() { ... }, you don't want to have a backslash before the closing }, the syntax requires a newline or a semicolon there. Commented Dec 7, 2017 at 22:52