clemens fischer <ino-n...@spotteswoode.dnsalias.org> writes:

> I have the following construct in a script:
>
>   ... a number of commands
>   {
>       ... a number of commands
>   } 2>&1 | ${prog_log} "${logfile}"
>
> It seems anything inside the braces is not seen by bash, and it doesn't
> show up in a "sh -x ..." trace, but ${prog_log} does.  I had debug
> echo's at the start of the block, they aren't triggered.

The trace goes to stderr, but you've just redirected it.

Andreas.

-- 
Andreas Schwab, sch...@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


Reply via email to