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*

4
  • 8
    `echo foo` is just the deprecated alternative to $(echo foo), isn’t it? Commented Jan 17, 2017 at 10:19
  • 3
    @Parckwart yes. Well, not actually "deprecated", it's still supported. it's just that $() is better almost always. Commented Jan 17, 2017 at 10:20
  • 3
    command substitution still spawns a subshell, so it won't help the OP here. Commented Oct 23, 2018 at 10:37
  • 4
    The OP actually said "I don't want to do that...." Commented Jan 31, 2020 at 10:22