bug-bash
[Top][All Lists]
Advanced

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

Re: Bad PIPESTATUS when using eval with a pipe stored in a variable


From: Paul Jarc
Subject: Re: Bad PIPESTATUS when using eval with a pipe stored in a variable
Date: Wed, 29 Jun 2005 18:08:43 -0400
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.4 (gnu/linux)

Philippe Torche <philippe.torche@jle.ch> wrote:
> aPipe='|'
> eval echo 'titi' $aPipe grep toto | grep titi

This is equivalent to:
eval "echo titi | grep toto" | grep titi

The whole eval counts as one pipeline element, regardless of what's
inside it, so the top-level pipeline is only connecting two commands.


paul




reply via email to

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