On Dec 5, 4:45 pm, pk <p...@pk.invalid> wrote: > pjodrr wrote: > > Hi > > > On Dec 4, 7:58 pm, pk <p...@pk.invalid> 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) > > runs?
in my original example the "seq 4" runs in the current shell while here the command runs in a subshell. Peter