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 the way, I missed what you were doing with the file
> >
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)
runs?
On Dec 4, 7:46 pm, DennisW wrote:
>
> This should be in gnu.bash rather than gnu.bash.bug
oh, you are right, it's not a bug yet
> Would this work for you?
>
> while read line; do echo "$(date): $line $((num++))"; done
ah sorry, I used the command "seq" just as an example, it could
be any other
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, "seq" was just an example, sorry for
the confusion, it could be any other command, and it
should run in the current shell.
thanks,
Peter
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 the way, I missed what you were doing with the file
> descriptor on my first read. What is it that you