pjodrr wrote: > in my original example the "seq 4" runs in the current shell > while here the command runs in a subshell.
It would be nice if you explained what it is you're attempting to do, rather than ask for a solution for what you're thinking would do that.