[Top][All Lists]

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

Re: redirection after braced block

From: Marc Herbert
Subject: Re: redirection after braced block
Date: Tue, 06 Oct 2009 10:32:45 +0100
User-agent: Thunderbird (X11/20090320)

Greg Wooledge a écrit :
> On Mon, Oct 05, 2009 at 07:55:33PM +0200, clemens fischer wrote:
>>>>   {
>>>>       ... a number of commands
>>>>   } 2>&1 | ${prog_log} "${logfile}"

> If you're having trouble debugging your script, and you want to be
> absolutely sure whether the commands in the braces are executing, you
> should use commands that affect the file system (touch, etc.).

I tend to do it like this:

   exec 2>/tmp/mytrace.$$
   set -x

} | whatever

reply via email to

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