[Top][All Lists]

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

Re: trap handler scope wrong?

From: Phillip Susi
Subject: Re: trap handler scope wrong?
Date: Sun, 05 Mar 2006 21:08:45 -0500
User-agent: Mail/News 1.5 (X11/20060213)

Chet Ramey wrote:
trap "cat $LOG > &3" ERR
} 3>&1 > /dev/null

That's about right, but you need >&3 in the trap command.

I did have > &3 in the trap command, see?

I'm a bit worried though about hard coding the fd 3.  Is there a way to get the 
next available fd number and save it in a variable, rather than hard code 3?

reply via email to

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