[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: redirection after braced block
From: |
Andreas Schwab |
Subject: |
Re: redirection after braced block |
Date: |
Mon, 05 Oct 2009 19:37:42 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
clemens fischer <ino-news@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, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
Re: redirection after braced block, Chet Ramey, 2009/10/05