On Dec 5, 4:45 pm, pk wrote:
> pjodrr wrote:
> > Hi
>
> > On Dec 4, 7:58 pm, pk wrote:
> >> What's wrong with
>
> >> seq 4 | while read line; do echo "$(date): $line"; done
>
> > it creates a subshell
>
> uh...where do you think your original
>
> >(while read line; do echo "$(date): $line"; done)
On Dec 5, 3:51 pm, DennisW wrote:
> On Dec 5, 3:14 am, pjodrr wrote:
>
>
>
> > Hello,
>
> > On Dec 4, 8:18 pm, DennisW wrote:
>
> > > It works for me. Does it not for you? If you're asking why not do it,
> > > then the answer is "why call an external program unnecessarily?".
>
> > > Sorry, by th
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.