bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: output redirection with process substitution asynchronous?


From: pjodrr
Subject: Re: output redirection with process substitution asynchronous?
Date: Sun, 6 Dec 2009 00:26:12 -0800 (PST)
User-agent: G2/1.0

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]